aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2020-02-19 17:59:04 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2020-02-19 18:08:20 +0100
commit5291e8a65468532ccf4cc58709f24b4fa62157ca (patch)
tree7fe820d3039ebc91cab92ccb4ce77be169a69208
parent7a07de1efd4eb7cc11c33d3ad25cb2df70aa1ef1 (diff)
debug.h: Fix print format of chan in CLOGCHAN
Under armv7l arch, size_t is actually an unsigned int and not a long unsigned int, and compiler errors: CommonLibs/debug.h:28:24: error: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 8 has type ‘size_t {aka unsigned int}’ [-Werror=format=] Change-Id: I7f6ded5a984570b5267916d6c84eb7d019db73a8
-rw-r--r--CommonLibs/debug.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/CommonLibs/debug.h b/CommonLibs/debug.h
index 9f118b5..8d70155 100644
--- a/CommonLibs/debug.h
+++ b/CommonLibs/debug.h
@@ -25,5 +25,5 @@ pid_t my_gettid(void);
} while(0)
#define CLOGCHAN(chan, category, level, fmt, args...) do { \
- LOGP(category, level, "[tid=%ld][chan=%lu] " fmt, (long int) my_gettid(), chan, ##args); \
+ LOGP(category, level, "[tid=%ld][chan=%zu] " fmt, (long int) my_gettid(), chan, ##args); \
} while(0)