[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/5] io: Don't use '#' flag of printf format
From: |
Daniel P . Berrangé |
Subject: |
[PULL 4/5] io: Don't use '#' flag of printf format |
Date: |
Thu, 29 Oct 2020 10:01:18 +0000 |
From: AlexChen <alex.chen@huawei.com>
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>
---
io/channel-websock.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 ,
--
2.28.0
- [PULL 0/5] Misc next patches, Daniel P . Berrangé, 2020/10/29
- [PULL 1/5] io: Fix Lesser GPL version number, Daniel P . Berrangé, 2020/10/29
- [PULL 2/5] crypt: Fix Lesser GPL version number, Daniel P . Berrangé, 2020/10/29
- [PULL 4/5] io: Don't use '#' flag of printf format,
Daniel P . Berrangé <=
- [PULL 3/5] authz: Fix Lesser GPL version number, Daniel P . Berrangé, 2020/10/29
- [PULL 5/5] util: include the target address in socket connect failures, Daniel P . Berrangé, 2020/10/29
- Re: [PULL 0/5] Misc next patches, Peter Maydell, 2020/10/31