From dadcd4fcc62ab37d4e30da805de9713521c28238 Mon Sep 17 00:00:00 2001 From: Jacob Potter Date: Sat, 13 Dec 2008 17:13:58 -0500 Subject: [PATCH] a little more detail in rfb key logging --- net/rfb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/net/rfb.c b/net/rfb.c index 3e163b0..5735db1 100644 --- a/net/rfb.c +++ b/net/rfb.c @@ -360,9 +360,10 @@ static enum fsm_result recv_fsm(struct tcp_pcb *pcb, struct rfb_state *state) { case KEY_EVENT: if (state->writepos < sizeof(struct key_event_pkt)) return NEEDMORE; - outputf("RFB: Key"); struct key_event_pkt * p = (struct key_event_pkt *)state->data; + + outputf("RFB: Key: %d (%c)", htonl(p->keysym), (htonl(p->keysym) & 0xFF)); kbd_inject_keysym(htonl(p->keysym), p->downflag); state->readpos += sizeof(struct key_event_pkt); -- 2.43.0