Using dev_err() instead of printk() for more consistent output. (prints device name, etc). Signed-off-by: Enrico Weigelt <info@xxxxxxxxx> --- drivers/tty/serial/timbuart.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/tty/serial/timbuart.c b/drivers/tty/serial/timbuart.c index 19d38b5..dcce936 100644 --- a/drivers/tty/serial/timbuart.c +++ b/drivers/tty/serial/timbuart.c @@ -470,8 +470,7 @@ static int timbuart_probe(struct platform_device *dev) err_register: kfree(uart); err_mem: - printk(KERN_ERR "timberdale: Failed to register Timberdale UART: %d\n", - err); + dev_err(&dev->dev, "Failed to register Timberdale UART: %d\n", err); return err; } -- 1.9.1