summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorJohan Hovold <johan@hovoldconsulting.com>2016-02-11 13:52:50 +0100
committerGreg Kroah-Hartman <gregkh@google.com>2016-02-11 21:44:17 -0800
commit5ef545fb8c22ab605f764ea467859572797dbc09 (patch)
tree41e044aed565b03a42121d077953b21463d2579c /drivers/staging
parent8923c5b59ffd18b8a31b18dd02332fdfe801f7c9 (diff)
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 <johan@hovoldconsulting.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/greybus/spi.c3
1 files changed, 2 insertions, 1 deletions
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);