Fix some cosmetic stuff in the framebuffer character driver and in the LCD framebuffer driver front-end.

This commit is contained in:
Gregory Nutt 2017-09-17 13:48:10 -06:00
parent 0b8730fb8b
commit cfd44639b2
2 changed files with 4 additions and 4 deletions

View File

@ -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;
}

View File

@ -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;