qca-wifi: Fix compilation warning in peerstats
Fix compilation warning:
format '%u' expects argument of type 'unsigned int',
but argument 2 has type 'long unsigned int' [-Wformat=]
Change-Id: I59b616b946ad9548379e7350b346c7688fbcf37c
diff --git a/tools/linux/peerstats.c b/tools/linux/peerstats.c
index 1689cd7..0cd1a65 100644
--- a/tools/linux/peerstats.c
+++ b/tools/linux/peerstats.c
@@ -260,7 +260,11 @@
sojourn_stats->sum_sojourn_msdu[tid],
sojourn_stats->num_msdus[tid]);
}
- PRINT("sizeof(avg): %"PRIu32,
+#ifdef __LP64__
+ PRINT("sizeof(avg) : %"PRIu64,
+#else
+ PRINT("sizeof(avg) : %"PRIu32,
+#endif
sizeof(sojourn_stats->avg_sojourn_msdu[tid]));
PRINT("\n...........................................");
PRINT("...................................");