summaryrefslogtreecommitdiffstats
path: root/screen_ui.cpp
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2018-11-27 01:28:07 +0100
committerTao Bao <tbao@google.com>2018-11-27 07:46:19 +0100
commitdd78982d580aa61c39bfd13940140e5830f489b2 (patch)
tree6a59978781611cd0c24123b5705ceae9b46cf3c6 /screen_ui.cpp
parentMerge "minui: Fix a wrong arg in calling GRSurface::Create()." (diff)
downloadandroid_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.gz
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.bz2
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.lz
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.xz
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.tar.zst
android_bootable_recovery-dd78982d580aa61c39bfd13940140e5830f489b2.zip
Diffstat (limited to '')
-rw-r--r--screen_ui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index ed71888d1..765d2fe60 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -282,14 +282,14 @@ bool GraphicMenu::ValidateGraphicSurface(size_t max_width, size_t max_height, in
}
if (surface->pixel_bytes != 1 || surface->width != surface->row_bytes) {
- fprintf(stderr, "Invalid graphic surface, pixel bytes: %d, width: %d row_bytes: %d",
+ fprintf(stderr, "Invalid graphic surface, pixel bytes: %zu, width: %zu row_bytes: %zu",
surface->pixel_bytes, surface->width, surface->row_bytes);
return false;
}
if (surface->width > max_width || surface->height > max_height - y) {
fprintf(stderr,
- "Graphic surface doesn't fit into the screen. width: %d, height: %d, max_width: %zu,"
+ "Graphic surface doesn't fit into the screen. width: %zu, height: %zu, max_width: %zu,"
" max_height: %zu, vertical offset: %d\n",
surface->width, surface->height, max_width, max_height, y);
return false;