Commit 9ed1e6671cce91cb29fc8e6c1f878b0205214b09
1 parent
ee76f82e
Make debug printing consistent (Robert Reif)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3871 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
3 additions
and
3 deletions
hw/m48t59.c
... | ... | @@ -451,7 +451,7 @@ uint32_t m48t59_read (void *opaque, uint32_t addr) |
451 | 451 | break; |
452 | 452 | } |
453 | 453 | if (addr > 0x1FF9 && addr < 0x2000) |
454 | - NVRAM_PRINTF("0x%08x <= 0x%08x\n", addr, retval); | |
454 | + NVRAM_PRINTF("%s: 0x%08x <= 0x%08x\n", __func__, addr, retval); | |
455 | 455 | |
456 | 456 | return retval; |
457 | 457 | } |
... | ... | @@ -476,7 +476,7 @@ static void NVRAM_writeb (void *opaque, uint32_t addr, uint32_t val) |
476 | 476 | m48t59_t *NVRAM = opaque; |
477 | 477 | |
478 | 478 | addr -= NVRAM->io_base; |
479 | - NVRAM_PRINTF("0x%08x => 0x%08x\n", addr, val); | |
479 | + NVRAM_PRINTF("%s: 0x%08x => 0x%08x\n", __func__, addr, val); | |
480 | 480 | switch (addr) { |
481 | 481 | case 0: |
482 | 482 | NVRAM->addr &= ~0x00FF; |
... | ... | @@ -509,7 +509,7 @@ static uint32_t NVRAM_readb (void *opaque, uint32_t addr) |
509 | 509 | retval = -1; |
510 | 510 | break; |
511 | 511 | } |
512 | - NVRAM_PRINTF("0x%08x <= 0x%08x\n", addr, retval); | |
512 | + NVRAM_PRINTF("%s: 0x%08x <= 0x%08x\n", __func__, addr, retval); | |
513 | 513 | |
514 | 514 | return retval; |
515 | 515 | } | ... | ... |