summaryrefslogtreecommitdiffstats
path: root/io
diff options
context:
space:
mode:
authorAlexChen2020-10-19 14:12:02 +0200
committerDaniel P. Berrangé2020-10-29 10:57:37 +0100
commit77b7829e755aec2f74601190a4521617b6dab49c (patch)
tree41000547629b2b3bd2f625c5d9d7c8bd33aaee5c /io
parentauthz: Fix Lesser GPL version number (diff)
downloadqemu-77b7829e755aec2f74601190a4521617b6dab49c.tar.gz
qemu-77b7829e755aec2f74601190a4521617b6dab49c.tar.xz
qemu-77b7829e755aec2f74601190a4521617b6dab49c.zip
io: Don't use '#' flag of printf format
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: AlexChen <alex.chen@huawei.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'io')
-rw-r--r--io/channel-websock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io/channel-websock.c b/io/channel-websock.c
index bb545fa327..03c1f7cb62 100644
--- a/io/channel-websock.c
+++ b/io/channel-websock.c
@@ -746,7 +746,7 @@ static int qio_channel_websock_decode_header(QIOChannelWebsock *ioc,
opcode != QIO_CHANNEL_WEBSOCK_OPCODE_CLOSE &&
opcode != QIO_CHANNEL_WEBSOCK_OPCODE_PING &&
opcode != QIO_CHANNEL_WEBSOCK_OPCODE_PONG) {
- error_setg(errp, "unsupported opcode: %#04x; only binary, close, "
+ error_setg(errp, "unsupported opcode: 0x%04x; only binary, close, "
"ping, and pong websocket frames are supported", opcode);
qio_channel_websock_write_close(
ioc, QIO_CHANNEL_WEBSOCK_STATUS_INVALID_DATA ,