treewide: cleanup continuations and remove logging message whitespace
Using C line continuation inside format strings is error prone. Clean up the unintended whitespace introduced by misuse of \. Neaten correctly used line continations as well for consistency. drivers/scsi/arcmsr/arcmsr_hba.c has these errors as well, but arcmsr needs a lot more work and the driver should likely be moved to staging instead. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Randy Dunlap <randy.dunlap@oracle.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
@@ -49,8 +49,8 @@ static int bh1780_write(struct bh1780_data *ddata, u8 reg, u8 val, char *msg)
|
||||
int ret = i2c_smbus_write_byte_data(ddata->client, reg, val);
|
||||
if (ret < 0)
|
||||
dev_err(&ddata->client->dev,
|
||||
"i2c_smbus_write_byte_data failed error %d\
|
||||
Register (%s)\n", ret, msg);
|
||||
"i2c_smbus_write_byte_data failed error %d Register (%s)\n",
|
||||
ret, msg);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -59,8 +59,8 @@ static int bh1780_read(struct bh1780_data *ddata, u8 reg, char *msg)
|
||||
int ret = i2c_smbus_read_byte_data(ddata->client, reg);
|
||||
if (ret < 0)
|
||||
dev_err(&ddata->client->dev,
|
||||
"i2c_smbus_read_byte_data failed error %d\
|
||||
Register (%s)\n", ret, msg);
|
||||
"i2c_smbus_read_byte_data failed error %d Register (%s)\n",
|
||||
ret, msg);
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user