qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Robert Reif <reif@earthlink.net>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] hw/m48t59.c make debug printing consistent
Date: Thu, 27 Dec 2007 18:42:17 -0500	[thread overview]
Message-ID: <47743859.9000802@earthlink.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 115 bytes --]

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

[-- Attachment #2: m48t59.c.diff.txt --]
[-- Type: text/plain, Size: 949 bytes --]

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;
 }

                 reply	other threads:[~2007-12-27 23:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=47743859.9000802@earthlink.net \
    --to=reif@earthlink.net \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).