[PATCH] drm: mxsfb_crtc: Print bus_format in hexadecimal

Fabio Estevam festevam at gmail.com
Sun Apr 30 19:40:50 UTC 2017


From: Fabio Estevam <fabio.estevam at nxp.com>

Media bus formats are represented in hexadecimal format in
include/uapi/linux/media-bus-format.h, so it is better to print the
error message using the bus_format variable in hexadecimal.

Signed-off-by: Fabio Estevam <fabio.estevam at nxp.com>
---
 drivers/gpu/drm/mxsfb/mxsfb_crtc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c
index 1144e0c..893f9f0 100644
--- a/drivers/gpu/drm/mxsfb/mxsfb_crtc.c
+++ b/drivers/gpu/drm/mxsfb/mxsfb_crtc.c
@@ -109,7 +109,7 @@ static void mxsfb_set_bus_fmt(struct mxsfb_drm_private *mxsfb)
 		reg |= CTRL_SET_BUS_WIDTH(STMLCDIF_24BIT);
 		break;
 	default:
-		dev_err(drm->dev, "Unknown media bus format %d\n", bus_format);
+		dev_err(drm->dev, "Unknown media bus format 0x%x\n", bus_format);
 		break;
 	}
 	writel(reg, mxsfb->base + LCDC_CTRL);
-- 
2.7.4



More information about the dri-devel mailing list