diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-25 13:06:46 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-25 18:25:03 +0200 |
commit | 0cb9c5880e6b8dedc4e20026ce859dd1ea9aac84 (patch) | |
tree | 7cd888eb407bc86b7387a669de4ed43915d4c822 | |
parent | c431ffd47157ad4bd3a230570a31faa088c71260 (diff) |
ui/vnc: fix debug output for invalid audio message
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>
-rw-r--r-- | ui/vnc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |