summary refs log tree commit diff stats
path: root/contrib/plugins/hotblocks.c
diff options
context:
space:
mode:
authorzhouyang <zhouyang789@huawei.com>2021-02-13 13:03:06 +0000
committerAlex Bennée <alex.bennee@linaro.org>2021-02-18 08:17:02 +0000
commit7fe7ab15e72fcc7c2b4509532990126f5fa5ebfa (patch)
treed1406ec4f61b162b1d0a4cd74dbfde044ebad697 /contrib/plugins/hotblocks.c
parenta622d64eea14ee0162621850093137a086c00ab5 (diff)
downloadfocaccia-qemu-7fe7ab15e72fcc7c2b4509532990126f5fa5ebfa.tar.gz
focaccia-qemu-7fe7ab15e72fcc7c2b4509532990126f5fa5ebfa.zip
contrib: Don't use '#' flag of printf format
I am reading contrib related code and found some style problems while
check the code using checkpatch.pl. This commit fixs the misuse of
'#' flag of printf format

Signed-off-by: zhouyang <zhouyang789@huawei.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20210118031004.1662363-2-zhouyang789@huawei.com>
Message-Id: <20210213130325.14781-5-alex.bennee@linaro.org>
Diffstat (limited to 'contrib/plugins/hotblocks.c')
-rw-r--r--contrib/plugins/hotblocks.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/plugins/hotblocks.c b/contrib/plugins/hotblocks.c
index 37435a3fc7..4b08340143 100644
--- a/contrib/plugins/hotblocks.c
+++ b/contrib/plugins/hotblocks.c
@@ -63,7 +63,7 @@ static void plugin_exit(qemu_plugin_id_t id, void *p)
 
         for (i = 0; i < limit && it->next; i++, it = it->next) {
             ExecCount *rec = (ExecCount *) it->data;
-            g_string_append_printf(report, "%#016"PRIx64", %d, %ld, %"PRId64"\n",
+            g_string_append_printf(report, "0x%016"PRIx64", %d, %ld, %"PRId64"\n",
                                    rec->start_addr, rec->trans_count,
                                    rec->insns, rec->exec_count);
         }