VNC: Fix some compile problems when graphics debug is enabled
This commit is contained in:
parent
628dd9b181
commit
8f26e46c40
@ -583,7 +583,7 @@ void vnc_key_map(FAR struct vnc_session_s *session, uint16_t keysym,
|
|||||||
ret = nx_kbdin(session->handle, nch, buffer);
|
ret = nx_kbdin(session->handle, nch, buffer);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
gdbg("ERROR: nx_kbdin() failed: %d\n", ret)
|
gdbg("ERROR: nx_kbdin() failed: %d\n", ret);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
/* Inject the single key press into NX */
|
/* Inject the single key press into NX */
|
||||||
@ -591,7 +591,7 @@ void vnc_key_map(FAR struct vnc_session_s *session, uint16_t keysym,
|
|||||||
ret = nx_kbdchin(session->handle,(uint8_t)keych);
|
ret = nx_kbdchin(session->handle,(uint8_t)keych);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
gdbg("ERROR: nx_kbdchin() failed: %d\n", ret)
|
gdbg("ERROR: nx_kbdchin() failed: %d\n", ret);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -224,7 +224,7 @@ int vnc_negotiate(FAR struct vnc_session_s *session)
|
|||||||
}
|
}
|
||||||
else if (setformat->msgtype != RFB_SETPIXELFMT_MSG)
|
else if (setformat->msgtype != RFB_SETPIXELFMT_MSG)
|
||||||
{
|
{
|
||||||
gdbg("ERROR: Not a SetFormat message: %d\n", (int)setformat->type);
|
gdbg("ERROR: Not a SetFormat message: %d\n", (int)setformat->msgtype);
|
||||||
return -EPROTO;
|
return -EPROTO;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -252,8 +252,8 @@ int vnc_server(int argc, FAR char *argv[])
|
|||||||
fb = (FAR uint8_t *)kmm_zalloc(RFB_SIZE);
|
fb = (FAR uint8_t *)kmm_zalloc(RFB_SIZE);
|
||||||
if (fb == NULL)
|
if (fb == NULL)
|
||||||
{
|
{
|
||||||
gdbg("ERROR: Failed to allocate framebuffer memory: %lu\n",
|
gdbg("ERROR: Failed to allocate framebuffer memory: %lu KB\n",
|
||||||
(unsigned long)alloc);
|
(unsigned long)(RFB_SIZE / 1024));
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user