diff options
author | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-04 07:31:40 +0000 |
---|---|---|
committer | blueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162> | 2007-11-04 07:31:40 +0000 |
commit | ab3d1727d126525284843a7c00cdb4de867d98e2 (patch) | |
tree | b8c8af11ba7f5679c8c0c92b3952b38247a6bf1f /exec.c | |
parent | 056401eae60953822098ff1dc30860364c9681be (diff) | |
download | qemu-ab3d1727d126525284843a7c00cdb4de867d98e2.zip |
Fix debug statements
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3525 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'exec.c')
-rw-r--r-- | exec.c | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -339,10 +339,10 @@ void tb_flush(CPUState *env1) { CPUState *env; #if defined(DEBUG_FLUSH) - printf("qemu: flush code_size=%d nb_tbs=%d avg_tb_size=%d\n", - code_gen_ptr - code_gen_buffer, - nb_tbs, - nb_tbs > 0 ? (code_gen_ptr - code_gen_buffer) / nb_tbs : 0); + printf("qemu: flush code_size=%ld nb_tbs=%d avg_tb_size=%ld\n", + (unsigned long)(code_gen_ptr - code_gen_buffer), + nb_tbs, nb_tbs > 0 ? + ((unsigned long)(code_gen_ptr - code_gen_buffer)) / nb_tbs : 0); #endif nb_tbs = 0; @@ -889,7 +889,7 @@ static inline void tb_alloc_page(TranslationBlock *tb, mprotect(g2h(page_addr), qemu_host_page_size, (prot & PAGE_BITS) & ~PAGE_WRITE); #ifdef DEBUG_TB_INVALIDATE - printf("protecting code page: 0x%08lx\n", + printf("protecting code page: 0x" TARGET_FMT_lx "\n", page_addr); #endif } @@ -2089,7 +2089,7 @@ void qemu_ram_free(ram_addr_t addr) static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr) { #ifdef DEBUG_UNASSIGNED - printf("Unassigned mem read " TARGET_FMT_lx "\n", addr); + printf("Unassigned mem read " TARGET_FMT_plx "\n", addr); #endif #ifdef TARGET_SPARC do_unassigned_access(addr, 0, 0, 0); @@ -2102,7 +2102,7 @@ static uint32_t unassigned_mem_readb(void *opaque, target_phys_addr_t addr) static void unassigned_mem_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) { #ifdef DEBUG_UNASSIGNED - printf("Unassigned mem write " TARGET_FMT_lx " = 0x%x\n", addr, val); + printf("Unassigned mem write " TARGET_FMT_plx " = 0x%x\n", addr, val); #endif #ifdef TARGET_SPARC do_unassigned_access(addr, 1, 0, 0); |