From patchwork Tue Jul 24 19:20:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Verkuil X-Patchwork-Id: 10542969 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 8900114E2 for ; Tue, 24 Jul 2018 19:20:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7779B28FD0 for ; Tue, 24 Jul 2018 19:20:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 738C9291F9; Tue, 24 Jul 2018 19:20:37 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 6D3E4291F9 for ; Tue, 24 Jul 2018 19:20:36 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 5EBBE894E3; Tue, 24 Jul 2018 19:20:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from lb3-smtp-cloud9.xs4all.net (lb3-smtp-cloud9.xs4all.net [194.109.24.30]) by gabe.freedesktop.org (Postfix) with ESMTPS id 59BFD894E3 for ; Tue, 24 Jul 2018 19:20:33 +0000 (UTC) Received: from [IPv6:2001:983:e9a7:1:9d72:6750:10db:3c3f] ([IPv6:2001:983:e9a7:1:9d72:6750:10db:3c3f]) by smtp-cloud9.xs4all.net with ESMTPA id i2rEf44h6EJtci2rFfNJKG; Tue, 24 Jul 2018 21:20:31 +0200 To: Linux Media Mailing List , "dri-devel@lists.freedesktop.org" , =?utf-8?b?VmlsbGUgU3lyasOkbMOk?= From: Hans Verkuil Subject: [PATCH for v4.19] drm_dp_cec.c: fix formatting typo: %pdH -> %phD Message-ID: Date: Tue, 24 Jul 2018 21:20:28 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Language: en-US X-CMAE-Envelope: MS4wfC60pOl5Z7xxCMj9GaQL7tizNDmXOxkRH3W7L+sXBSfF82VKmjF2nAP6Utjt6ZLDEY1FtxAv19DA8KtWQUyI8C2igvmqoIgw9LgJUSrvPihFuw18Iahp K3ZT+MF14AMBDlqxoZ2nNwWf1b7F5/SkVEZGxnsvrQQJHeFMlL1Ue8HtPVq96Jf+AtL2X/iCGRZNHAG1nm5ihJI17puM3XwsjpDULKUGUdX/FazF7D7yrFNs REVvQUzCrOu5fafXlENtoHwXlsTUhWjlRQ2LeyT3QpJfVFthGShN+okSL/CnOQG52+sWmMkfMSL0RMYPs1iNPJZ5+qGnyruC3OMSlILEdfW83R02UYYcjdhl Xhqpzq3w X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" X-Virus-Scanned: ClamAV using ClamSMTP This caused a kernel oops since %pdH interpreted the pointer as a struct file. Signed-off-by: Hans Verkuil --- 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)),