On 23.03.2022 14:47, Philippe Mathieu-Daudé wrote:
From: Philippe Mathieu-Daudé <[email protected]>

"0x%u" format is very misleading, replace by "0x%x".

Found running:

   $ git grep -E '0x%[0-9]*([lL]*|" ?PRI)[dDuU]' block/

Inspired-by: Richard Henderson <[email protected]>
Signed-off-by: Philippe Mathieu-Daudé <[email protected]>
---
  block/parallels-ext.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/block/parallels-ext.c b/block/parallels-ext.c
index cb22a427d7..5122f67ac2 100644
--- a/block/parallels-ext.c
+++ b/block/parallels-ext.c
@@ -261,7 +261,7 @@ static int 
parallels_parse_format_extension(BlockDriverState *bs,
              break;
default:
-            error_setg(errp, "Unknown feature: 0x%" PRIu64, fh.magic);
+            error_setg(errp, "Unknown feature: 0x%" PRIx64, fh.magic);
              goto fail;
          }
Reviewed-by: Denis V. Lunev <[email protected]>

Reply via email to