[PATCH 3/5] drm/tinydrm/mi0283qt: Clarify error message
Noralf Trønnes
noralf at tronnes.org
Fri Jan 5 16:55:58 UTC 2018
Make it clear that the printed value is the error and not the command
value itself.
Signed-off-by: Noralf Trønnes <noralf at tronnes.org>
---
drivers/gpu/drm/tinydrm/mi0283qt.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/gpu/drm/tinydrm/mi0283qt.c b/drivers/gpu/drm/tinydrm/mi0283qt.c
index c69a4d958f24..5994140f1e1e 100644
--- a/drivers/gpu/drm/tinydrm/mi0283qt.c
+++ b/drivers/gpu/drm/tinydrm/mi0283qt.c
@@ -58,7 +58,7 @@ static int mi0283qt_init(struct mipi_dbi *mipi)
ret = regulator_enable(mipi->regulator);
if (ret) {
- DRM_DEV_ERROR(dev, "Failed to enable regulator %d\n", ret);
+ DRM_DEV_ERROR(dev, "Failed to enable regulator: %d\n", ret);
return ret;
}
@@ -69,7 +69,7 @@ static int mi0283qt_init(struct mipi_dbi *mipi)
mipi_dbi_hw_reset(mipi);
ret = mipi_dbi_command(mipi, MIPI_DCS_SOFT_RESET);
if (ret) {
- DRM_DEV_ERROR(dev, "Error sending command %d\n", ret);
+ DRM_DEV_ERROR(dev, "Error sending command: %d\n", ret);
regulator_disable(mipi->regulator);
return ret;
}
--
2.14.2
More information about the dri-devel
mailing list