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 <[email protected]>
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Murai Takashi
2021-10-19 08:00:08 +00:00
committed by Adrien Destugues
parent 41ed621ea6
commit d171b8b533
+2 -2
View File
@@ -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