qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [4645] Fix smbus_eeprom.c compile with DEBUG (spotted by Duilio Protti).
@ 2008-06-02  1:48 Andrzej Zaborowski
  0 siblings, 0 replies; only message in thread
From: Andrzej Zaborowski @ 2008-06-02  1:48 UTC (permalink / raw)
  To: qemu-devel

Revision: 4645
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=4645
Author:   balrog
Date:     2008-06-02 01:48:27 +0000 (Mon, 02 Jun 2008)

Log Message:
-----------
Fix smbus_eeprom.c compile with DEBUG (spotted by Duilio Protti).

Modified Paths:
--------------
    trunk/hw/smbus_eeprom.c

Modified: trunk/hw/smbus_eeprom.c
===================================================================
--- trunk/hw/smbus_eeprom.c	2008-06-02 01:40:29 UTC (rev 4644)
+++ trunk/hw/smbus_eeprom.c	2008-06-02 01:48:27 UTC (rev 4645)
@@ -37,7 +37,7 @@
 static void eeprom_quick_cmd(SMBusDevice *dev, uint8_t read)
 {
 #ifdef DEBUG
-    printf("eeprom_quick_cmd: addr=0x%02x read=%d\n", dev->addr, read);
+    printf("eeprom_quick_cmd: addr=0x%02x read=%d\n", dev->i2c.address, read);
 #endif
 }
 
@@ -45,7 +45,8 @@
 {
     SMBusEEPROMDevice *eeprom = (SMBusEEPROMDevice *) dev;
 #ifdef DEBUG
-    printf("eeprom_send_byte: addr=0x%02x val=0x%02x\n", dev->addr, val);
+    printf("eeprom_send_byte: addr=0x%02x val=0x%02x\n",
+           dev->i2c.address, val);
 #endif
     eeprom->offset = val;
 }
@@ -55,7 +56,8 @@
     SMBusEEPROMDevice *eeprom = (SMBusEEPROMDevice *) dev;
     uint8_t val = eeprom->data[eeprom->offset++];
 #ifdef DEBUG
-    printf("eeprom_receive_byte: addr=0x%02x val=0x%02x\n", dev->addr, val);
+    printf("eeprom_receive_byte: addr=0x%02x val=0x%02x\n",
+           dev->i2c.address, val);
 #endif
     return val;
 }
@@ -65,8 +67,8 @@
     SMBusEEPROMDevice *eeprom = (SMBusEEPROMDevice *) dev;
     int n;
 #ifdef DEBUG
-    printf("eeprom_write_byte: addr=0x%02x cmd=0x%02x val=0x%02x\n", dev->addr,
-           cmd, buf[0]);
+    printf("eeprom_write_byte: addr=0x%02x cmd=0x%02x val=0x%02x\n",
+           dev->i2c.address, cmd, buf[0]);
 #endif
     /* An page write operation is not a valid SMBus command.
        It is a block write without a length byte.  Fortunately we

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-06-02  1:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-02  1:48 [Qemu-devel] [4645] Fix smbus_eeprom.c compile with DEBUG (spotted by Duilio Protti) Andrzej Zaborowski

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).