From 3730c550cdde89a0c835bd13931480dde2cd8de0 Mon Sep 17 00:00:00 2001 From: Stefan Sperling Date: Wed, 21 Nov 2018 15:54:45 +0100 Subject: [PATCH] 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 --- gtp/queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtp/queue.c b/gtp/queue.c index 82cd7b4..ebeebe6 100644 --- a/gtp/queue.c +++ b/gtp/queue.c @@ -79,7 +79,7 @@ static int queue_seqset(struct queue_t *queue, struct qmsg_t *qmsg, 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 %zu, *PEER %zu\n", sizeof(peer), sizeof(*peer)); qmsg->seq = seq;