[PATCH] hw/m48t59.c make debug printing consistent

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[PATCH] hw/m48t59.c make debug printing consistent

Robert Reif
This patch adds __func__ to 3 of the 4 debug printfs to make it
consistent with the the one that already uses it.

diff -p -u -r1.17 m48t59.c
--- hw/m48t59.c 17 Nov 2007 17:14:43 -0000 1.17
+++ hw/m48t59.c 27 Dec 2007 23:34:11 -0000
@@ -451,7 +451,7 @@ uint32_t m48t59_read (void *opaque, uint
         break;
     }
     if (addr > 0x1FF9 && addr < 0x2000)
- NVRAM_PRINTF("0x%08x <= 0x%08x\n", addr, retval);
+ NVRAM_PRINTF("%s: 0x%08x <= 0x%08x\n", __func__, addr, retval);
 
     return retval;
 }
@@ -476,7 +476,7 @@ static void NVRAM_writeb (void *opaque,
     m48t59_t *NVRAM = opaque;
 
     addr -= NVRAM->io_base;
-    NVRAM_PRINTF("0x%08x => 0x%08x\n", addr, val);
+    NVRAM_PRINTF("%s: 0x%08x => 0x%08x\n", __func__, addr, val);
     switch (addr) {
     case 0:
         NVRAM->addr &= ~0x00FF;
@@ -509,7 +509,7 @@ static uint32_t NVRAM_readb (void *opaqu
         retval = -1;
         break;
     }
-    NVRAM_PRINTF("0x%08x <= 0x%08x\n", addr, retval);
+    NVRAM_PRINTF("%s: 0x%08x <= 0x%08x\n", __func__, addr, retval);
 
     return retval;
 }