libradiotap: fix bad format
Found with -Wformat Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
879c9abc24
commit
8c574a3d66
1 changed files with 16 additions and 0 deletions
16
libs/libradiotap/patches/010-format.patch
Normal file
16
libs/libradiotap/patches/010-format.patch
Normal file
|
@ -0,0 +1,16 @@
|
|||
--- a/parse.c
|
||||
+++ b/parse.c
|
||||
@@ -1,3 +1,4 @@
|
||||
+#include <inttypes.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/mman.h>
|
||||
@@ -39,7 +40,7 @@ static void print_radiotap_namespace(str
|
||||
{
|
||||
switch (iter->this_arg_index) {
|
||||
case IEEE80211_RADIOTAP_TSFT:
|
||||
- printf("\tTSFT: %llu\n", le64toh(*(unsigned long long *)iter->this_arg));
|
||||
+ printf("\tTSFT: %" PRIu64 "\n", le64toh(*(uint64_t *)iter->this_arg));
|
||||
break;
|
||||
case IEEE80211_RADIOTAP_FLAGS:
|
||||
printf("\tflags: %02x\n", *iter->this_arg);
|
Loading…
Reference in a new issue