]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
ui/vnc: fix debug output for invalid audio message
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Sep 2023 11:06:46 +0000 (13:06 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 25 Sep 2023 16:25:03 +0000 (18:25 +0200)
The debug message was cut and pasted from the invalid audio format
case, but the audio message is at bytes 2-3.

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
ui/vnc.c

index 6fd86996a5419c0378a9c4fef518c265a3abe365..1684ab909684fc51c6ef26d8435ba8e53236bbb8 100644 (file)
--- a/ui/vnc.c
+++ b/ui/vnc.c
@@ -2551,7 +2551,7 @@ static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len)
                     vs, vs->ioc, vs->as.fmt, vs->as.nchannels, vs->as.freq);
                 break;
             default:
-                VNC_DEBUG("Invalid audio message %d\n", read_u8(data, 4));
+                VNC_DEBUG("Invalid audio message %d\n", read_u8(data, 2));
                 vnc_client_error(vs);
                 break;
             }