Browse Source

libradiotap: fix bad format

Found with -Wformat

Signed-off-by: Rosen Penev <rosenp@gmail.com>
lilik-openwrt-22.03
Rosen Penev 2 years ago
committed by Nick Hainke
parent
commit
8c574a3d66
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      libs/libradiotap/patches/010-format.patch

+ 16
- 0
libs/libradiotap/patches/010-format.patch View 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…
Cancel
Save