From a00b449e1f5e544a0e9287aa5cd62cff05e87bc1 Mon Sep 17 00:00:00 2001 From: Tao Bao Date: Wed, 16 Jan 2019 09:29:47 -0800 Subject: screen_ui: Trivial fix to append newline when logging. Noticed while debugging other issues. Test: Boot and check recovery.log. Change-Id: Id92265cff287b9de89efe5eea85581e63e31aeb2 --- screen_ui.cpp | 4 ++-- 1 file 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; } -- cgit v1.2.3