diff options
author | Jean Delvare <khali@linux-fr.org> | 2005-07-31 13:02:53 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2005-09-05 12:14:16 -0400 |
commit | b6d7b3d1b5a388b7e9af2629a9ecccedee064078 (patch) | |
tree | 8961c6ee76ddf00c613308322472346c886a27e6 /drivers/i2c/i2c-dev.c | |
parent | 014e45380a3b96f2ebd8ff0d115b7a33c06d06d1 (diff) |
[PATCH] I2C: Improve core debugging messages
The debugging messages in i2c-core are more confusing than helpful. Some
lack their trailing newline, some lack a prefix, some are redundant,
some lack precious information. Here is my attempt to introduce some
standardization in there.
I also changed two messages in i2c-dev to make it clear they come from
i2c-dev.
Signed-off-by: Jean Delvare <khali@linux-fr.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/i2c/i2c-dev.c')
-rw-r--r-- | drivers/i2c/i2c-dev.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/i2c/i2c-dev.c b/drivers/i2c/i2c-dev.c index bc5d557e5dd9..aa7a4fadef64 100644 --- a/drivers/i2c/i2c-dev.c +++ b/drivers/i2c/i2c-dev.c | |||
@@ -434,7 +434,8 @@ static int i2cdev_attach_adapter(struct i2c_adapter *adap) | |||
434 | 434 | ||
435 | devfs_mk_cdev(MKDEV(I2C_MAJOR, i2c_dev->minor), | 435 | devfs_mk_cdev(MKDEV(I2C_MAJOR, i2c_dev->minor), |
436 | S_IFCHR|S_IRUSR|S_IWUSR, "i2c/%d", i2c_dev->minor); | 436 | S_IFCHR|S_IRUSR|S_IWUSR, "i2c/%d", i2c_dev->minor); |
437 | dev_dbg(&adap->dev, "Registered as minor %d\n", i2c_dev->minor); | 437 | pr_debug("i2c-dev: adapter [%s] registered as minor %d\n", |
438 | adap->name, i2c_dev->minor); | ||
438 | 439 | ||
439 | /* register this i2c device with the driver core */ | 440 | /* register this i2c device with the driver core */ |
440 | i2c_dev->adap = adap; | 441 | i2c_dev->adap = adap; |
@@ -471,7 +472,7 @@ static int i2cdev_detach_adapter(struct i2c_adapter *adap) | |||
471 | wait_for_completion(&i2c_dev->released); | 472 | wait_for_completion(&i2c_dev->released); |
472 | kfree(i2c_dev); | 473 | kfree(i2c_dev); |
473 | 474 | ||
474 | dev_dbg(&adap->dev, "Adapter unregistered\n"); | 475 | pr_debug("i2c-dev: adapter [%s] unregistered\n", adap->name); |
475 | return 0; | 476 | return 0; |
476 | } | 477 | } |
477 | 478 | ||