Revision 26a76461 monitor.c

b/monitor.c
533 533
            term_printf(" ");
534 534
            switch(format) {
535 535
            case 'o':
536
                term_printf("%#*llo", max_digits, v);
536
                term_printf("%#*" PRIo64, max_digits, v);
537 537
                break;
538 538
            case 'x':
539
                term_printf("0x%0*llx", max_digits, v);
539
                term_printf("0x%0*" PRIx64, max_digits, v);
540 540
                break;
541 541
            case 'u':
542
                term_printf("%*llu", max_digits, v);
542
                term_printf("%*" PRIu64, max_digits, v);
543 543
                break;
544 544
            case 'd':
545
                term_printf("%*lld", max_digits, v);
545
                term_printf("%*" PRId64, max_digits, v);
546 546
                break;
547 547
            case 'c':
548 548
                term_printc(v);
......
602 602
#else
603 603
    switch(format) {
604 604
    case 'o':
605
        term_printf("%#llo", val);
605
        term_printf("%#" PRIo64, val);
606 606
        break;
607 607
    case 'x':
608
        term_printf("%#llx", val);
608
        term_printf("%#" PRIx64, val);
609 609
        break;
610 610
    case 'u':
611
        term_printf("%llu", val);
611
        term_printf("%" PRIu64, val);
612 612
        break;
613 613
    default:
614 614
    case 'd':
615
        term_printf("%lld", val);
615
        term_printf("%" PRId64, val);
616 616
        break;
617 617
    case 'c':
618 618
        term_printc(val);
......
1026 1026
    total = qemu_time;
1027 1027
    if (total == 0)
1028 1028
        total = 1;
1029
    term_printf("async time  %lld (%0.3f)\n",
1029
    term_printf("async time  %" PRId64 " (%0.3f)\n",
1030 1030
                dev_time, dev_time / (double)ticks_per_sec);
1031
    term_printf("qemu time   %lld (%0.3f)\n",
1031
    term_printf("qemu time   %" PRId64 " (%0.3f)\n",
1032 1032
                qemu_time, qemu_time / (double)ticks_per_sec);
1033
    term_printf("kqemu time  %lld (%0.3f %0.1f%%) count=%lld int=%lld excp=%lld intr=%lld\n",
1033
    term_printf("kqemu time  %" PRId64 " (%0.3f %0.1f%%) count=%" PRId64 " int=%" PRId64 " excp=%" PRId64 " intr=%" PRId64 "\n",
1034 1034
                kqemu_time, kqemu_time / (double)ticks_per_sec,
1035 1035
                kqemu_time / (double)total * 100.0,
1036 1036
                kqemu_exec_count,

Also available in: Unified diff