bin/listfont: Fix -Wformat=

Change-Id: Ifa451635a6ff3d42b916d7e535b41db347d6d1bf
Reviewed-on: https://review.haiku-os.org/c/1510
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
This commit is contained in:
Murai Takashi 2019-06-05 20:45:35 +09:00 committed by waddlesplash
parent d8bf363563
commit b8a9c31265

View File

@ -140,16 +140,23 @@ main(int argc, char **argv)
printf(", "); printf(", ");
int32 tunedCount = font.CountTuned(); int32 tunedCount = font.CountTuned();
printf("%ld tuned", tunedCount); printf("%" B_PRId32 " tuned", tunedCount);
if (displayTuned) { if (displayTuned) {
printf(":"); printf(":");
for (int32 i = 0; i < tunedCount; i++) { for (int32 i = 0; i < tunedCount; i++) {
tuned_font_info info; tuned_font_info info;
font.GetTunedInfo(i, &info); font.GetTunedInfo(i, &info);
printf("\n\t(size %4.1f, shear %5.3f, rot. %5.3f, flags 0x%lx, face 0x%x)", printf("\n\t(size %4.1f, "
info.size, "shear %5.3f, "
info.shear, info.rotation, info.flags, info.face); "rot. %5.3f, "
"flags 0x%" B_PRIx32 ", "
"face 0x%x)",
info.size,
info.shear,
info.rotation,
info.flags,
info.face);
} }
} }
} }