[MERGED] 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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Fri Jun 17 15:34:42 UTC 2016


Harald Welte has submitted this change and it was merged.

Change subject: fix compiler warning: printf format for sizeof()
......................................................................


fix compiler warning: printf format for sizeof()

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

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



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: merged
Gerrit-Change-Id: Id600c5a34ab261736f7595ab2e36e3a30d434175
Gerrit-PatchSet: 3
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