summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTao Bao <tbao@google.com>2019-01-17 00:41:55 +0100
committerandroid-build-merger <android-build-merger@google.com>2019-01-17 00:41:55 +0100
commita70556178e3e6f6ca0c6b299ae7c972367fac020 (patch)
tree926d08ce6f5578df08669a08c800d80581f7da51
parentMerge "updater: add functions to modify dynamic partition metadata" am: 27aa9404fc am: 4def1e8a54 (diff)
parentMerge "screen_ui: Trivial fix to append newline when logging." am: 594a63cc9d (diff)
downloadandroid_bootable_recovery-a70556178e3e6f6ca0c6b299ae7c972367fac020.tar
android_bootable_recovery-a70556178e3e6f6ca0c6b299ae7c972367fac020.tar.gz
android_bootable_recovery-a70556178e3e6f6ca0c6b299ae7c972367fac020.tar.bz2
android_bootable_recovery-a70556178e3e6f6ca0c6b299ae7c972367fac020.tar.lz
android_bootable_recovery-a70556178e3e6f6ca0c6b299ae7c972367fac020.tar.xz
android_bootable_recovery-a70556178e3e6f6ca0c6b299ae7c972367fac020.tar.zst
android_bootable_recovery-a70556178e3e6f6ca0c6b299ae7c972367fac020.zip
-rw-r--r--screen_ui.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/screen_ui.cpp b/screen_ui.cpp
index 7fa41c4e4..6c00a2235 100644
--- a/screen_ui.cpp
+++ b/screen_ui.cpp
@@ -278,12 +278,12 @@ bool GraphicMenu::Validate(size_t max_width, size_t max_height, const GRSurface*
bool GraphicMenu::ValidateGraphicSurface(size_t max_width, size_t max_height, int y,
const GRSurface* surface) {
if (!surface) {
- fprintf(stderr, "Graphic surface can not be null");
+ fprintf(stderr, "Graphic surface can not be null\n");
return false;
}
if (surface->pixel_bytes != 1 || surface->width != surface->row_bytes) {
- fprintf(stderr, "Invalid graphic surface, pixel bytes: %zu, width: %zu row_bytes: %zu",
+ fprintf(stderr, "Invalid graphic surface, pixel bytes: %zu, width: %zu row_bytes: %zu\n",
surface->pixel_bytes, surface->width, surface->row_bytes);
return false;
}