From b8a9c3126531b42e3cc4379281dd4e0c671fc4f0 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Wed, 5 Jun 2019 20:45:35 +0900 Subject: [PATCH] bin/listfont: Fix -Wformat= Change-Id: Ifa451635a6ff3d42b916d7e535b41db347d6d1bf Reviewed-on: https://review.haiku-os.org/c/1510 Reviewed-by: waddlesplash --- src/bin/listfont.cpp | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/src/bin/listfont.cpp b/src/bin/listfont.cpp index bcd15dcc53..776f4db2c3 100644 --- a/src/bin/listfont.cpp +++ b/src/bin/listfont.cpp @@ -140,16 +140,23 @@ main(int argc, char **argv) printf(", "); int32 tunedCount = font.CountTuned(); - printf("%ld tuned", tunedCount); + printf("%" B_PRId32 " tuned", tunedCount); if (displayTuned) { printf(":"); for (int32 i = 0; i < tunedCount; i++) { tuned_font_info info; font.GetTunedInfo(i, &info); - printf("\n\t(size %4.1f, shear %5.3f, rot. %5.3f, flags 0x%lx, face 0x%x)", - info.size, - info.shear, info.rotation, info.flags, info.face); + printf("\n\t(size %4.1f, " + "shear %5.3f, " + "rot. %5.3f, " + "flags 0x%" B_PRIx32 ", " + "face 0x%x)", + info.size, + info.shear, + info.rotation, + info.flags, + info.face); } } }