Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K2z9x-0006hm-Tv for qemu-devel@nongnu.org; Sun, 01 Jun 2008 21:48:29 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K2z9x-0006gd-88 for qemu-devel@nongnu.org; Sun, 01 Jun 2008 21:48:29 -0400 Received: from [199.232.76.173] (port=36100 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K2z9x-0006gL-3W for qemu-devel@nongnu.org; Sun, 01 Jun 2008 21:48:29 -0400 Received: from savannah.gnu.org ([199.232.41.3]:46076 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1K2z9w-00008M-Oc for qemu-devel@nongnu.org; Sun, 01 Jun 2008 21:48:28 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1K2z9w-0004ry-9e for qemu-devel@nongnu.org; Mon, 02 Jun 2008 01:48:28 +0000 Received: from balrog by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1K2z9v-0004rc-Up for qemu-devel@nongnu.org; Mon, 02 Jun 2008 01:48:28 +0000 MIME-Version: 1.0 Errors-To: balrog Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Andrzej Zaborowski Message-Id: Date: Mon, 02 Jun 2008 01:48:27 +0000 Subject: [Qemu-devel] [4645] Fix smbus_eeprom.c compile with DEBUG (spotted by Duilio Protti). 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 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