[PATCH] osmo-bts[master]: fix compiler warning: printf format for sizeof() -> %PRIuPTR

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/.

Neels Hofmeyr gerrit-no-reply at lists.osmocom.org
Thu Jun 16 02:33:37 UTC 2016


Review at  https://gerrit.osmocom.org/287

fix compiler warning: printf format for sizeof() -> %PRIuPTR

Change-Id: Id600c5a34ab261736f7595ab2e36e3a30d434175
---
M src/common/cbch.c
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/87/287/1

diff --git a/src/common/cbch.c b/src/common/cbch.c
index 75bcf28..afe6326 100644
--- a/src/common/cbch.c
+++ b/src/common/cbch.c
@@ -19,6 +19,7 @@
  */
 
 #include <errno.h>
+#include <inttypes.h>
 
 #include <osmocom/core/linuxlist.h>
 #include <osmocom/gsm/protocol/gsm_04_12.h>
@@ -111,7 +112,7 @@
 
 	if (msg_len > sizeof(scm->msg)) {
 		LOGP(DLSMS, LOGL_ERROR,
-		     "Cannot process SMSCB of %u bytes (max %lu)\n",
+		     "Cannot process SMSCB of %u bytes (max %" PRIuPTR ")\n",
 		     msg_len, sizeof(scm->msg));
 		return -EINVAL;
 	}

-- 
To view, visit https://gerrit.osmocom.org/287
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id600c5a34ab261736f7595ab2e36e3a30d434175
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>



More information about the gerrit-log mailing list