From c91c69752b218144046d9164d85a8699baa95b80 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Thu, 6 Jun 2019 20:51:40 +0900 Subject: [PATCH] bin/setdecor: Fix -Wformat= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I8c50ec470098817fb17c626964e6e8158323550e Reviewed-on: https://review.haiku-os.org/c/1517 Reviewed-by: Jérôme Duval --- src/bin/setdecor.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/bin/setdecor.cpp b/src/bin/setdecor.cpp index bbb1dac0c4..724568bcee 100644 --- a/src/bin/setdecor.cpp +++ b/src/bin/setdecor.cpp @@ -99,7 +99,9 @@ main(int argc, char** argv) for (int32 i = 0; i < count; ++i) { decor = util->DecoratorAt(i); if (decor == NULL) { - fprintf(stderr, "error NULL entry @ %li / %li - BUG BUG BUG\n", + fprintf(stderr, + "error NULL entry @ %" B_PRIi32 " / %" B_PRIi32 + " - BUG BUG BUG\n", i, count); // return 2 to track DecorInfoUtility errors return 2; @@ -135,7 +137,9 @@ main(int argc, char** argv) for (int32 i = 0; i < count; ++i) { decor = util->DecoratorAt(i); if (decor == NULL) { - fprintf(stderr, "error NULL entry @ %li / %li - BUG BUG BUG\n", + fprintf(stderr, + "error NULL entry @ %" B_PRIi32 " / %" B_PRIi32 + " - BUG BUG BUG\n", i, count); // return 2 to track DecorInfoUtility errors return 2;