mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 06:13:53 -06:00
contrib/plugins/howvec: Fix string format
This fixes on Darwin: plugins/howvec.c:186:40: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] class->count); ^~~~~~~~~~~~ plugins/howvec.c:213:36: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') [-Wformat] rec->count, ^~~~~~~~~~ Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20230907105004.88600-4-philmd@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3df1765073
commit
9b60d6a100
1 changed files with 4 additions and 2 deletions
|
@ -181,7 +181,8 @@ static void plugin_exit(qemu_plugin_id_t id, void *p)
|
||||||
switch (class->what) {
|
switch (class->what) {
|
||||||
case COUNT_CLASS:
|
case COUNT_CLASS:
|
||||||
if (class->count || verbose) {
|
if (class->count || verbose) {
|
||||||
g_string_append_printf(report, "Class: %-24s\t(%ld hits)\n",
|
g_string_append_printf(report,
|
||||||
|
"Class: %-24s\t(%" PRId64 " hits)\n",
|
||||||
class->class,
|
class->class,
|
||||||
class->count);
|
class->count);
|
||||||
}
|
}
|
||||||
|
@ -208,7 +209,8 @@ static void plugin_exit(qemu_plugin_id_t id, void *p)
|
||||||
i++, counts = g_list_next(counts)) {
|
i++, counts = g_list_next(counts)) {
|
||||||
InsnExecCount *rec = (InsnExecCount *) counts->data;
|
InsnExecCount *rec = (InsnExecCount *) counts->data;
|
||||||
g_string_append_printf(report,
|
g_string_append_printf(report,
|
||||||
"Instr: %-24s\t(%ld hits)\t(op=0x%08x/%s)\n",
|
"Instr: %-24s\t(%" PRId64 " hits)"
|
||||||
|
"\t(op=0x%08x/%s)\n",
|
||||||
rec->insn,
|
rec->insn,
|
||||||
rec->count,
|
rec->count,
|
||||||
rec->opcode,
|
rec->opcode,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue