Change in osmo-ggsn[master]: fix a format string directives in queue_seqset()

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

Stefan Sperling gerrit-no-reply at lists.osmocom.org
Wed Nov 21 14:56:51 UTC 2018


Stefan Sperling has uploaded this change for review. ( https://gerrit.osmocom.org/11862


Change subject: fix a format string directives in queue_seqset()
......................................................................

fix a format string directives in queue_seqset()

Coverity pointed out that a format string used inappropriate
format string directives for variables of type size_t.

Change-Id: I889019aad963932fdc032421e60a72c809a93bca
Related: CID#135197
---
M gtp/queue.c
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ggsn refs/changes/62/11862/1

diff --git a/gtp/queue.c b/gtp/queue.c
index 82cd7b4..2a780f5 100644
--- a/gtp/queue.c
+++ b/gtp/queue.c
@@ -79,7 +79,7 @@
 	if (QUEUE_DEBUG)
 		printf("Begin queue_seqset seq = %d\n", (int)seq);
 	if (QUEUE_DEBUG)
-		printf("SIZEOF PEER %d, *PEER %d\n", sizeof(peer),
+		printf("SIZEOF PEER %zd, *PEER %zd\n", sizeof(peer),
 		       sizeof(*peer));
 
 	qmsg->seq = seq;

-- 
To view, visit https://gerrit.osmocom.org/11862
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-ggsn
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I889019aad963932fdc032421e60a72c809a93bca
Gerrit-Change-Number: 11862
Gerrit-PatchSet: 1
Gerrit-Owner: Stefan Sperling <ssperling at sysmocom.de>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20181121/e7c0800f/attachment.htm>


More information about the gerrit-log mailing list