On 25.09.23 22:22, Eric Blake wrote:
nbd_receive_simple_reply(int32_t error, const char *errname,
uint64_t cookie) "Got simple reply: { .error = %" PRId32 " (%s), cookie =
%" PRIu64" }"
-nbd_receive_structured_reply_chunk(uint16_t flags, uint16_t type, const char *name,
uint64_t cookie, uint32_t length) "Got structured reply chunk: { flags = 0x%"
PRIx16 ", type = %d (%s), cookie = %" PRIu64 ", length = %" PRIu32
" }"
+nbd_receive_reply_chunk_header(uint16_t flags, uint16_t type, const char *name, uint64_t
cookie, uint32_t length) "Got reply chunk header: { flags = 0x%" PRIx16 ",
type = %d (%s), cookie = %" PRIu64 ", length = %" PRIu32 " }"
preexisting, but better would be s/%d/%" PRIu16 "/
+nbd_receive_wrong_header(uint32_t magic, const char *mode)
"Server sent unexpected magic 0x%" PRIx32 " for negotiated mode %s"
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov(a)yandex-team.ru>
--
Best regards,
Vladimir