Change in osmo-trx[master]: debug.h: Fix print format of chan in CLOGCHAN

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

pespin gerrit-no-reply at lists.osmocom.org
Wed Feb 19 17:09:02 UTC 2020


pespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-trx/+/17227 )


Change subject: debug.h: Fix print format of chan in CLOGCHAN
......................................................................

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
---
M CommonLibs/debug.h
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-trx refs/changes/27/17227/1

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 @@
 } 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)

-- 
To view, visit https://gerrit.osmocom.org/c/osmo-trx/+/17227
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-trx
Gerrit-Branch: master
Gerrit-Change-Id: I7f6ded5a984570b5267916d6c84eb7d019db73a8
Gerrit-Change-Number: 17227
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20200219/dd7c28f2/attachment.htm>


More information about the gerrit-log mailing list