From e98c2062630be9d745dbdef75edb66b0a45382e5 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Thu, 6 Jun 2019 06:43:24 +0900 Subject: [PATCH] bin/listres: Fix -Wformat= Change-Id: Ida7d957c9a1f73dc87b7e0ce488c1c30cb5a95cc Reviewed-on: https://review.haiku-os.org/c/1511 Reviewed-by: waddlesplash --- src/bin/listres.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/listres.cpp b/src/bin/listres.cpp index c4419ca57b..cf15492aa0 100644 --- a/src/bin/listres.cpp +++ b/src/bin/listres.cpp @@ -69,7 +69,7 @@ get_type(type_code type) if (missed < 2) sprintf(buffer, "'%c%c%c%c'", value[0], value[1], value[2], value[3]); else - sprintf(buffer, "0x%08lx", type); + sprintf(buffer, "0x%08" B_PRIx32, type); return buffer; } } @@ -120,13 +120,13 @@ main(int argc, char *argv[]) size_t size; int32 id; while (resources.GetResourceInfo(index++, &type, &id, &name, &size)) { - printf("%11s %6ld %9ld \"%s\"\n", + printf("%11s %6" B_PRId32 " %9ld \"%s\"\n", get_type(type), id, size, name); total += size; } } - printf("\n%Ld bytes total in resources.\n", total); + printf("\n%" B_PRIdOFF " bytes total in resources.\n", total); return 0; }