bin/setdecor: Fix -Wformat=

Change-Id: I8c50ec470098817fb17c626964e6e8158323550e
Reviewed-on: https://review.haiku-os.org/c/1517
Reviewed-by: Jérôme Duval <[email protected]>
This commit is contained in:
Murai Takashi
2019-07-11 21:36:29 +00:00
committed by Stephan Aßmus
parent 103e774d46
commit c91c69752b
+6 -2
View File
@@ -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;