From: Johan Hovold Date: Thu, 11 Feb 2016 12:52:50 +0000 (+0100) Subject: greybus: spi: add bundle-device prefix to error messages X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5ef545fb8c22ab605f764ea467859572797dbc09;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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);