diff mbox series

[v2,2/3] softmmu: Don't use '#' flag of printf format

Message ID ef0192da-8046-6c0f-0bfd-2cd228fd093e@huawei.com
State New
Headers show
Series [v2,1/3] softmmu: Do not use C99 // comments | expand

Commit Message

chaihaoyu Nov. 3, 2020, 4:09 a.m. UTC
Hi, recently I found some code style problems while using checkpatch.pl tool,please review.

Date: Tue, 3 Nov 2020 11:01:40 +0800
Subject: [PATCH] Don't use '#' flag of printf format
signed-off-by: Haoyu Chai<chaihaoyu1@huawei.com>
---
 softmmu/device_tree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/softmmu/device_tree.c b/softmmu/device_tree.c
index b335dae707..c70215ba6a 100644
--- a/softmmu/device_tree.c
+++ b/softmmu/device_tree.c
@@ -367,7 +367,7 @@  int qemu_fdt_setprop_cell(void *fdt, const char *node_path,

     r = fdt_setprop_cell(fdt, findnode_nofail(fdt, node_path), property, val);
     if (r < 0) {
-        error_report("%s: Couldn't set %s/%s = %#08x: %s", __func__,
+        error_report("%s: Couldn't set %s/%s = 0x%08x: %s", __func__,
                      node_path, property, val, fdt_strerror(r));
         exit(1);
     }