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
This commit is contained in:
Harald Welte 2020-03-14 17:38:54 +01:00
parent 8fc441a5d6
commit afc6c6881d
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}