Commit ab3d1727d126525284843a7c00cdb4de867d98e2

Authored by blueswir1
1 parent 056401ea

Fix debug statements


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3525 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 7 additions and 7 deletions
... ... @@ -339,10 +339,10 @@ void tb_flush(CPUState *env1)
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,7 +889,7 @@ static inline void tb_alloc_page(TranslationBlock *tb,
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,7 +2089,7 @@ void qemu_ram_free(ram_addr_t addr)
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,7 +2102,7 @@ static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr)
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);
... ...