From: Volker Lendecke Date: Wed, 22 Jan 2020 09:21:17 +0000 (+0100) Subject: librpc: Use PRIu32 printf specifiers X-Git-Tag: ldb-2.1.1~248 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a0b967ec15b485329cefa037de85484b97b9d50d;p=thirdparty%2Fsamba.git librpc: Use PRIu32 printf specifiers Both values printed are uint32_t's Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/librpc/ndr/ndr.c b/librpc/ndr/ndr.c index 74bc038c6f2..c772d53f6ed 100644 --- a/librpc/ndr/ndr.c +++ b/librpc/ndr/ndr.c @@ -1329,9 +1329,13 @@ _PUBLIC_ enum ndr_err_code ndr_pull_struct_blob_all_noalloc(const DATA_BLOB *blo highest_ofs = MAX(ndr.offset, ndr.relative_highest_offset); if (highest_ofs < ndr.data_size) { enum ndr_err_code ret; - ret = ndr_pull_error(&ndr, NDR_ERR_UNREAD_BYTES, - "not all bytes consumed ofs[%u] size[%u]", - highest_ofs, ndr.data_size); + ret = ndr_pull_error( + &ndr, + NDR_ERR_UNREAD_BYTES, + "not all bytes consumed ofs[%"PRIu32"] " + "size[%"PRIu32"]", + highest_ofs, + ndr.data_size); return ret; } return NDR_ERR_SUCCESS;