diff --git a/drivers/lcd/lcd_framebuffer.c b/drivers/lcd/lcd_framebuffer.c index 7aed3bbd2b..f8bffbd642 100644 --- a/drivers/lcd/lcd_framebuffer.c +++ b/drivers/lcd/lcd_framebuffer.c @@ -513,7 +513,7 @@ int up_fbinitialize(int display) ret = lcd->getvideoinfo(lcd, &vinfo); if (ret < 0) { - gerr("ERROR: getvideoinfo() failed: %d\n", ret); + lcderr("ERROR: LCD getvideoinfo() failed: %d\n", ret); goto errout_with_lcd; } @@ -524,7 +524,7 @@ int up_fbinitialize(int display) ret = lcd->getplaneinfo(lcd, VIDEO_PLANE, &priv->pinfo); if (ret < 0) { - gerr("ERROR: getplaneinfo() failed: %d\n", ret); + lcderr("ERROR: LCD getplaneinfo() failed: %d\n", ret); goto errout_with_lcd; } @@ -536,7 +536,7 @@ int up_fbinitialize(int display) priv->fbmem = (FAR uint8_t *)kmm_zalloc(priv->fblen); if (priv->fbmem == NULL) { - gerr("ERROR: getplaneinfo() failed: %d\n", ret); + lcderr("ERROR: Failed to allocate frame buffer memory\n"); ret = -ENOMEM; goto errout_with_lcd; } diff --git a/drivers/video/fb.c b/drivers/video/fb.c index 42b62776d6..dd7217759e 100644 --- a/drivers/video/fb.c +++ b/drivers/video/fb.c @@ -415,7 +415,7 @@ static int fb_ioctl(FAR struct file *filep, int cmd, unsigned long arg) ret = fb->vtable->getplaneinfo(fb->vtable, fb->plane, &pinfo); if (ret >= 0) { - nx_notify_rectangle(&pinfo, rect); + nx_notify_rectangle(((FAR NX_PLANEINFOTYPE *)&pinfo, rect); } } break;