[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [4645] Fix smbus_eeprom.c compile with DEBUG (spotted by Du
From: |
Andrzej Zaborowski |
Subject: |
[Qemu-devel] [4645] Fix smbus_eeprom.c compile with DEBUG (spotted by Duilio Protti). |
Date: |
Mon, 02 Jun 2008 01:48:27 +0000 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [4645] Fix smbus_eeprom.c compile with DEBUG (spotted by Duilio Protti).,
Andrzej Zaborowski <=