librpc: Use PRIu32 printf specifiers
authorVolker Lendecke <vl@samba.org>
Wed, 22 Jan 2020 09:21:17 +0000 (10:21 +0100)
committerJeremy Allison <jra@samba.org>
Thu, 23 Jan 2020 19:11:34 +0000 (19:11 +0000)
Both values printed are uint32_t's

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
librpc/ndr/ndr.c

index 74bc038c6f2c809518396a1c8aa6b88e71699062..c772d53f6edc0cf94f58af76a2e82c7c82e7af00 100644 (file)
@@ -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;