Revision ab3d1727 exec.c

b/exec.c
339 339
{
340 340
    CPUState *env;
341 341
#if defined(DEBUG_FLUSH)
342
    printf("qemu: flush code_size=%d nb_tbs=%d avg_tb_size=%d\n",
343
           code_gen_ptr - code_gen_buffer,
344
           nb_tbs,
345
           nb_tbs > 0 ? (code_gen_ptr - code_gen_buffer) / nb_tbs : 0);
342
    printf("qemu: flush code_size=%ld nb_tbs=%d avg_tb_size=%ld\n",
343
           (unsigned long)(code_gen_ptr - code_gen_buffer),
344
           nb_tbs, nb_tbs > 0 ?
345
           ((unsigned long)(code_gen_ptr - code_gen_buffer)) / nb_tbs : 0);
346 346
#endif
347 347
    nb_tbs = 0;
348 348

  
......
889 889
        mprotect(g2h(page_addr), qemu_host_page_size,
890 890
                 (prot & PAGE_BITS) & ~PAGE_WRITE);
891 891
#ifdef DEBUG_TB_INVALIDATE
892
        printf("protecting code page: 0x%08lx\n",
892
        printf("protecting code page: 0x" TARGET_FMT_lx "\n",
893 893
               page_addr);
894 894
#endif
895 895
    }
......
2089 2089
static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr)
2090 2090
{
2091 2091
#ifdef DEBUG_UNASSIGNED
2092
    printf("Unassigned mem read " TARGET_FMT_lx "\n", addr);
2092
    printf("Unassigned mem read " TARGET_FMT_plx "\n", addr);
2093 2093
#endif
2094 2094
#ifdef TARGET_SPARC
2095 2095
    do_unassigned_access(addr, 0, 0, 0);
......
2102 2102
static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val)
2103 2103
{
2104 2104
#ifdef DEBUG_UNASSIGNED
2105
    printf("Unassigned mem write " TARGET_FMT_lx " = 0x%x\n", addr, val);
2105
    printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", addr, val);
2106 2106
#endif
2107 2107
#ifdef TARGET_SPARC
2108 2108
    do_unassigned_access(addr, 1, 0, 0);

Also available in: Unified diff