Skip to content

Commit

Permalink
host: libbladeRF_test: fix printf of int64_t value
Browse files Browse the repository at this point in the history
Fixes build failure on macOS
  • Loading branch information
rtucker committed Aug 7, 2018
1 parent 134ae20 commit 21059b2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions host/libraries/libbladeRF_test/test_repeater/src/repeater.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@

#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
#include <string.h>
#include <pthread.h>
#include <libbladeRF.h>
Expand Down Expand Up @@ -518,7 +519,8 @@ static int init_device(struct repeater *repeater, struct repeater_config *config
memcpy(&repeater->gain_range_tx, gain_ptr,
sizeof(struct bladerf_range));

printf("TX gain range is: [%ld, %ld]\r\n", repeater->gain_range_tx.min,
printf("TX gain range is: [%"PRIi64", %"PRIi64"]\r\n",
repeater->gain_range_tx.min,
repeater->gain_range_tx.max);
}

Expand All @@ -542,7 +544,8 @@ static int init_device(struct repeater *repeater, struct repeater_config *config
memcpy(&repeater->gain_range_rx, gain_ptr,
sizeof(struct bladerf_range));

printf("RX gain range is: [%ld, %ld]\r\n", repeater->gain_range_rx.min,
printf("RX gain range is: [%"PRIi64", %"PRIi64"]\r\n",
repeater->gain_range_rx.min,
repeater->gain_range_rx.max);
}

Expand Down

0 comments on commit 21059b2

Please sign in to comment.