rspro_util.c: Use %zu for size_t

Fix the following warning in 32bit builds on ARM:

rspro_util.c:92:53: warning: format '%lu' expects argument of type 'long unsigned int', but argument 4 has type 'size_t {aka unsigned int}' [-Wformat=]

Change-Id: I7ea17f8b9fdd68cdac442bf4d4e518f92292f6fc
changes/79/17479/1
Harald Welte 3 years ago
parent 8fc441a5d6
commit afc6c6881d
  1. 2
      src/rspro_util.c

@ -89,7 +89,7 @@ RsproPDU_t *rspro_dec_msg(struct msgb *msg)
//printf("decoding %s\n", msgb_hexdump(msg));
rval = ber_decode(NULL, &asn_DEF_RsproPDU, (void **) &pdu, msgb_l2(msg), msgb_l2len(msg));
if (rval.code != RC_OK) {
fprintf(stderr, "Failed to decode: %d. Consumed %lu of %u bytes\n",
fprintf(stderr, "Failed to decode: %d. Consumed %zu of %u bytes\n",
rval.code, rval.consumed, msgb_length(msg));
return NULL;
}

Loading…
Cancel
Save