From d171b8b53352572edb977680c32d01531b869871 Mon Sep 17 00:00:00 2001 From: Murai Takashi Date: Thu, 7 Oct 2021 20:55:34 +0900 Subject: [PATCH] system/boot/loader: fix wrong type of arguments to formatting function Pointed out by LGTM Change-Id: Ifd2cce8aa36308791845fe552893e077db47ad0c Reviewed-on: https://review.haiku-os.org/c/haiku/+/4606 Tested-by: Commit checker robot Reviewed-by: Adrien Destugues --- src/system/boot/loader/pager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/system/boot/loader/pager.cpp b/src/system/boot/loader/pager.cpp index cb1dcae212..d602943f78 100644 --- a/src/system/boot/loader/pager.cpp +++ b/src/system/boot/loader/pager.cpp @@ -150,8 +150,8 @@ pager(const PagerTextSource& textSource) console_set_cursor(0, height - 1); console_set_color(BLACK, GRAY); int32 bottomLine = std::min(topLine + height - 2, lineCount - 1); - printf("%" B_PRIuSIZE " - %" B_PRIuSIZE " %" B_PRIuSIZE "%%", - topLine, bottomLine, (bottomLine + 1) * 100 / lineCount); + printf("%" B_PRId32 " - %" B_PRId32 " %" B_PRId32 "%%", + topLine, bottomLine, (int32)((bottomLine + 1) * 100 / lineCount)); console_set_color(WHITE, BLACK); // wait for a key that changes the position