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);
|
||||
if (ret < 0)
|
||||
{
|
||||
gdbg("ERROR: nx_kbdin() failed: %d\n", ret)
|
||||
gdbg("ERROR: nx_kbdin() failed: %d\n", ret);
|
||||
}
|
||||
#else
|
||||
/* 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);
|
||||
if (ret < 0)
|
||||
{
|
||||
gdbg("ERROR: nx_kbdchin() failed: %d\n", ret)
|
||||
gdbg("ERROR: nx_kbdchin() failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ int vnc_negotiate(FAR struct vnc_session_s *session)
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
|
@ -252,8 +252,8 @@ int vnc_server(int argc, FAR char *argv[])
|
||||
fb = (FAR uint8_t *)kmm_zalloc(RFB_SIZE);
|
||||
if (fb == NULL)
|
||||
{
|
||||
gdbg("ERROR: Failed to allocate framebuffer memory: %lu\n",
|
||||
(unsigned long)alloc);
|
||||
gdbg("ERROR: Failed to allocate framebuffer memory: %lu KB\n",
|
||||
(unsigned long)(RFB_SIZE / 1024));
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user