From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1J82Ml-0004Py-43 for qemu-devel@nongnu.org; Thu, 27 Dec 2007 18:42:19 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1J82Mk-0004OO-7Q for qemu-devel@nongnu.org; Thu, 27 Dec 2007 18:42:18 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1J82Mj-0004O2-SA for qemu-devel@nongnu.org; Thu, 27 Dec 2007 18:42:17 -0500 Received: from pop-gadwall.atl.sa.earthlink.net ([207.69.195.61]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1J82Mj-0005Ag-KS for qemu-devel@nongnu.org; Thu, 27 Dec 2007 18:42:17 -0500 Received: from user-142h2k8.cable.mindspring.com ([72.40.138.136] helo=earthlink.net) by pop-gadwall.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1J82Mi-0007Mq-00 for qemu-devel@nongnu.org; Thu, 27 Dec 2007 18:42:16 -0500 Message-ID: <47743859.9000802@earthlink.net> Date: Thu, 27 Dec 2007 18:42:17 -0500 From: Robert Reif MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------060104020200090506090902" Subject: [Qemu-devel] [PATCH] hw/m48t59.c make debug printing consistent Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This is a multi-part message in MIME format. --------------060104020200090506090902 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit This patch adds __func__ to 3 of the 4 debug printfs to make it consistent with the the one that already uses it. --------------060104020200090506090902 Content-Type: text/plain; name="m48t59.c.diff.txt" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="m48t59.c.diff.txt" 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; } --------------060104020200090506090902--