public inbox for linux-media@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH for v4.19] drm_dp_cec.c: fix formatting typo: %pdH -> %phD
@ 2018-07-24 19:20 Hans Verkuil
  2018-07-28 18:53 ` Gustavo Padovan
  0 siblings, 1 reply; 2+ messages in thread
From: Hans Verkuil @ 2018-07-24 19:20 UTC (permalink / raw)
  To: Linux Media Mailing List, dri-devel@lists.freedesktop.org,
	Ville Syrjälä

This caused a kernel oops since %pdH interpreted the pointer
as a struct file.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
---
 drivers/gpu/drm/drm_dp_cec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/drm_dp_cec.c b/drivers/gpu/drm/drm_dp_cec.c
index 87b67cc1ea58..a6cac47f6248 100644
--- a/drivers/gpu/drm/drm_dp_cec.c
+++ b/drivers/gpu/drm/drm_dp_cec.c
@@ -157,7 +157,7 @@ static void drm_dp_cec_adap_status(struct cec_adapter *adap,

 	if (drm_dp_read_desc(aux, &desc, true))
 		return;
-	seq_printf(file, "OUI: %*pdH\n",
+	seq_printf(file, "OUI: %*phD\n",
 		   (int)sizeof(id->oui), id->oui);
 	seq_printf(file, "ID: %*pE\n",
 		   (int)strnlen(id->device_id, sizeof(id->device_id)),
-- 
2.18.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-07-28 20:21 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-07-24 19:20 [PATCH for v4.19] drm_dp_cec.c: fix formatting typo: %pdH -> %phD Hans Verkuil
2018-07-28 18:53 ` Gustavo Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox