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:
parent
8fc441a5d6
commit
afc6c6881d
|
@ -89,7 +89,7 @@ RsproPDU_t *rspro_dec_msg(struct msgb *msg)
|
||||||
//printf("decoding %s\n", msgb_hexdump(msg));
|
//printf("decoding %s\n", msgb_hexdump(msg));
|
||||||
rval = ber_decode(NULL, &asn_DEF_RsproPDU, (void **) &pdu, msgb_l2(msg), msgb_l2len(msg));
|
rval = ber_decode(NULL, &asn_DEF_RsproPDU, (void **) &pdu, msgb_l2(msg), msgb_l2len(msg));
|
||||||
if (rval.code != RC_OK) {
|
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));
|
rval.code, rval.consumed, msgb_length(msg));
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue