[steve@xxxxxxxxxxx: Linux 2.6.2 i2c debug bug]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- Forwarded message from Steve Wormley <steve at wormley.com> -----

From: Steve Wormley <steve at wormley.com>
To: frodol at dds.nl
Subject: Linux 2.6.2 i2c debug bug
X-Spam-Status: No, hits=-5.0 required=5.0 tests=UNIFIED_PATCH version=2.20
X-Spam-Level: 

Apparently one of the dev_dbg in i2c_master_recv in i2c_core.c in
2.6.2 
has a little issue in that it's dereferencing the wrong element
(client->dev instead of client->adapter->dev)

Fix is below


diff -u stuff/linux-2.6.2/drivers/i2c/i2c-core.c linux-2.6.2/drivers/i2c/i2c-core.c
--- stuff/linux-2.6.2/drivers/i2c/i2c-core.c    Tue Feb  3 19:43:13 2004
+++ linux-2.6.2/drivers/i2c/i2c-core.c  Wed Feb  4 22:34:23 2004
@@ -598,7 +598,7 @@
                ret = adap->algo->master_xfer(adap,&msg,1);
                up(&adap->bus_lock);
 
-               dev_dbg(&client->dev, "master_recv: return:%d (count:%d, addr:0x%02x)\n",
+               dev_dbg(&client->adapter->dev, "master_recv: return:%d (count:%d, addr:0x%02x)\n",
                        ret, count, client->addr);
 
                /* if everything went ok (i.e. 1 msg transmitted), return #bytes



-Steve Wormley

----- End forwarded message -----

-- 
Frodo Looijaard <frodol at dds.nl>  PGP key and more: http://huizen.dds.nl/~frodol
Defenestration n. (formal or joc.):
  The act of removing Windows from your computer in disgust, usually followed
  by the installation of Linux or some other Unix-like operating system.



[Index of Archives]     [Linux Kernel]     [Linux Hardware Monitoring]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux