[PATCH] I2C: missing new lines in i2c-core messages
Two log messages lack their trailing new line in i2c-core. I'd swear I had fixed them already, but it seems not. Bonus: improved coding style. Signed-off-by: Jean Delvare <khali@linux-fr.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
0cacdf2982
commit
86749e8512
@ -231,8 +231,8 @@ int i2c_del_adapter(struct i2c_adapter *adap)
|
|||||||
if (driver->detach_adapter)
|
if (driver->detach_adapter)
|
||||||
if ((res = driver->detach_adapter(adap))) {
|
if ((res = driver->detach_adapter(adap))) {
|
||||||
dev_warn(&adap->dev, "can't detach adapter "
|
dev_warn(&adap->dev, "can't detach adapter "
|
||||||
"while detaching driver %s: driver not "
|
"while detaching driver %s: driver "
|
||||||
"detached!", driver->name);
|
"not detached!\n", driver->name);
|
||||||
goto out_unlock;
|
goto out_unlock;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -456,8 +456,8 @@ int i2c_detach_client(struct i2c_client *client)
|
|||||||
res = adapter->client_unregister(client);
|
res = adapter->client_unregister(client);
|
||||||
if (res) {
|
if (res) {
|
||||||
dev_err(&client->dev,
|
dev_err(&client->dev,
|
||||||
"client_unregister [%s] failed, "
|
"client_unregister [%s] failed, "
|
||||||
"client not detached", client->name);
|
"client not detached\n", client->name);
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user