qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: io: Don't use '#' flag of printf format


From: Philippe Mathieu-Daudé
Subject: Re: io: Don't use '#' flag of printf format
Date: Mon, 19 Oct 2020 14:55:05 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.3.1

On 10/19/20 2:12 PM, AlexChen wrote:
Signed-off-by: AlexChen <alex.chen@huawei.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 47a0e941d9..e94a1fcf99 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 ,


Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]