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

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
Fri Jun 17 02:11:44 UTC 2016


Hello Harald Welte, Jenkins Builder,

I'd like you to reexamine a change.  Please visit

    https://gerrit.osmocom.org/287

to look at the new patch set (#2).

fix compiler warning: printf format for sizeof()

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


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

diff --git a/src/common/cbch.c b/src/common/cbch.c
index 75bcf28..e511c67 100644
--- a/src/common/cbch.c
+++ b/src/common/cbch.c
@@ -111,7 +111,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 %zu)\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: newpatchset
Gerrit-Change-Id: Id600c5a34ab261736f7595ab2e36e3a30d434175
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Owner: Neels Hofmeyr <nhofmeyr at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list