From 5ef545fb8c22ab605f764ea467859572797dbc09 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Thu, 11 Feb 2016 13:52:50 +0100 Subject: [PATCH] greybus: spi: add bundle-device prefix to error messages Replace all pr_err with dev_err so we can tell what device (and driver) a message was for. Testing Done: Compiled Signed-off-by: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/spi.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/staging/greybus/spi.c b/drivers/staging/greybus/spi.c index c00492cc632e..7689af0f63a9 100644 --- a/drivers/staging/greybus/spi.c +++ b/drivers/staging/greybus/spi.c @@ -218,7 +218,8 @@ static int gb_spi_transfer_one_message(struct spi_master *master, if (response) gb_spi_decode_response(msg, response); } else { - pr_err("transfer operation failed (%d)\n", ret); + dev_err(&connection->bundle->dev, + "transfer operation failed: %d\n", ret); } gb_operation_put(operation); -- 2.20.1