aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2015-12-22 23:24:27 +0100
committerHarald Welte <laforge@gnumonks.org>2015-12-22 23:24:27 +0100
commitec86dcdc2fe3b57c0f3c71918967325eeb971369 (patch)
tree59014cda27e3866394c874fc02aa657423add464
parentb4d2736ecc0528416bc1c8099950d15f2a6c239d (diff)
sccp.c: Fix compiler warnings about size_t / %u
-rw-r--r--src/sccp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/sccp.c b/src/sccp.c
index f533edf..28378de 100644
--- a/src/sccp.c
+++ b/src/sccp.c
@@ -246,7 +246,7 @@ int _sccp_parse_connection_released(struct msgb *msgb, struct sccp_parse_result
/* we don't have enough size for the struct */
if (msgb_l2len(msgb) < header_size) {
- LOGP(DSCCP, LOGL_ERROR, "msgb > header_size %u %u\n",
+ LOGP(DSCCP, LOGL_ERROR, "msgb > header_size %u %zu\n",
msgb_l2len(msgb), header_size);
return -1;
}
@@ -352,7 +352,7 @@ int _sccp_parse_connection_release_complete(struct msgb *msgb, struct sccp_parse
/* header check */
if (msgb_l2len(msgb) < header_size) {
- LOGP(DSCCP, LOGL_ERROR, "msgb < header_size %u %u\n",
+ LOGP(DSCCP, LOGL_ERROR, "msgb < header_size %u %zu\n",
msgb_l2len(msgb), header_size);
return -1;
}
@@ -373,7 +373,7 @@ int _sccp_parse_connection_dt1(struct msgb *msgb, struct sccp_parse_result *resu
/* we don't have enough size for the struct */
if (msgb_l2len(msgb) < header_size) {
- LOGP(DSCCP, LOGL_ERROR, "msgb > header_size %u %u\n",
+ LOGP(DSCCP, LOGL_ERROR, "msgb > header_size %u %zu\n",
msgb_l2len(msgb), header_size);
return -1;
}