Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

media: dvb-frontends/lnbh25: improve kernellog output

Use dev_dbg() in conjunction with the %*ph format macro to print the vmon
status debug, thus hiding continuous hexdumping from default log levels.
Also, change the attach success log line from error to info severity.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Acked-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>

authored by

Daniel Scheller and committed by
Mauro Carvalho Chehab
e1bdf024 bd7a85d3

+3 -3
+3 -3
drivers/media/dvb-frontends/lnbh25.c
··· 76 76 return ret; 77 77 } 78 78 } 79 - print_hex_dump_bytes("lnbh25_read_vmon: ", 80 - DUMP_PREFIX_OFFSET, status, sizeof(status)); 79 + dev_dbg(&priv->i2c->dev, "%s(): %*ph\n", 80 + __func__, (int) sizeof(status), status); 81 81 if ((status[0] & (LNBH25_STATUS_OFL | LNBH25_STATUS_VMON)) != 0) { 82 82 dev_err(&priv->i2c->dev, 83 83 "%s(): voltage in failure state, status reg 0x%x\n", ··· 178 178 fe->ops.release_sec = lnbh25_release; 179 179 fe->ops.set_voltage = lnbh25_set_voltage; 180 180 181 - dev_err(&i2c->dev, "%s(): attached at I2C addr 0x%02x\n", 181 + dev_info(&i2c->dev, "%s(): attached at I2C addr 0x%02x\n", 182 182 __func__, priv->i2c_address); 183 183 return fe; 184 184 }