mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
C99 64 bit printf
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2018 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
3b42c9794c
commit
26a76461f2
25 changed files with 67 additions and 64 deletions
22
monitor.c
22
monitor.c
|
@ -533,16 +533,16 @@ static void memory_dump(int count, int format, int wsize,
|
|||
term_printf(" ");
|
||||
switch(format) {
|
||||
case 'o':
|
||||
term_printf("%#*llo", max_digits, v);
|
||||
term_printf("%#*" PRIo64, max_digits, v);
|
||||
break;
|
||||
case 'x':
|
||||
term_printf("0x%0*llx", max_digits, v);
|
||||
term_printf("0x%0*" PRIx64, max_digits, v);
|
||||
break;
|
||||
case 'u':
|
||||
term_printf("%*llu", max_digits, v);
|
||||
term_printf("%*" PRIu64, max_digits, v);
|
||||
break;
|
||||
case 'd':
|
||||
term_printf("%*lld", max_digits, v);
|
||||
term_printf("%*" PRId64, max_digits, v);
|
||||
break;
|
||||
case 'c':
|
||||
term_printc(v);
|
||||
|
@ -602,17 +602,17 @@ static void do_print(int count, int format, int size, unsigned int valh, unsigne
|
|||
#else
|
||||
switch(format) {
|
||||
case 'o':
|
||||
term_printf("%#llo", val);
|
||||
term_printf("%#" PRIo64, val);
|
||||
break;
|
||||
case 'x':
|
||||
term_printf("%#llx", val);
|
||||
term_printf("%#" PRIx64, val);
|
||||
break;
|
||||
case 'u':
|
||||
term_printf("%llu", val);
|
||||
term_printf("%" PRIu64, val);
|
||||
break;
|
||||
default:
|
||||
case 'd':
|
||||
term_printf("%lld", val);
|
||||
term_printf("%" PRId64, val);
|
||||
break;
|
||||
case 'c':
|
||||
term_printc(val);
|
||||
|
@ -1026,11 +1026,11 @@ static void do_info_profile(void)
|
|||
total = qemu_time;
|
||||
if (total == 0)
|
||||
total = 1;
|
||||
term_printf("async time %lld (%0.3f)\n",
|
||||
term_printf("async time %" PRId64 " (%0.3f)\n",
|
||||
dev_time, dev_time / (double)ticks_per_sec);
|
||||
term_printf("qemu time %lld (%0.3f)\n",
|
||||
term_printf("qemu time %" PRId64 " (%0.3f)\n",
|
||||
qemu_time, qemu_time / (double)ticks_per_sec);
|
||||
term_printf("kqemu time %lld (%0.3f %0.1f%%) count=%lld int=%lld excp=%lld intr=%lld\n",
|
||||
term_printf("kqemu time %" PRId64 " (%0.3f %0.1f%%) count=%" PRId64 " int=%" PRId64 " excp=%" PRId64 " intr=%" PRId64 "\n",
|
||||
kqemu_time, kqemu_time / (double)ticks_per_sec,
|
||||
kqemu_time / (double)total * 100.0,
|
||||
kqemu_exec_count,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue