screen_ui: Trivial fix to append newline when logging.

Noticed while debugging other issues.

Test: Boot and check recovery.log.
Change-Id: Id92265cff287b9de89efe5eea85581e63e31aeb2
This commit is contained in:
Tao Bao 2019-01-16 09:29:47 -08:00
parent 22a27f9965
commit a00b449e1f

View file

@ -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, bool GraphicMenu::ValidateGraphicSurface(size_t max_width, size_t max_height, int y,
const GRSurface* surface) { const GRSurface* surface) {
if (!surface) { if (!surface) {
fprintf(stderr, "Graphic surface can not be null"); fprintf(stderr, "Graphic surface can not be null\n");
return false; return false;
} }
if (surface->pixel_bytes != 1 || surface->width != surface->row_bytes) { 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); surface->pixel_bytes, surface->width, surface->row_bytes);
return false; return false;
} }