Skip to content

Commit

Permalink
io: Don't use '#' flag of printf format
Browse files Browse the repository at this point in the history
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
Signed-off-by: AlexChen <[email protected]>
Signed-off-by: Daniel P. Berrangé <[email protected]>
  • Loading branch information
AlexChen authored and berrange committed Oct 29, 2020
1 parent 036a80c commit 77b7829
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion io/channel-websock.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ,
Expand Down

0 comments on commit 77b7829

Please sign in to comment.