Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp4529360rwd; Tue, 23 May 2023 08:52:11 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7H4OwgiJ4OzmnzPFXe12MiQXO3BRqPJ732/2tgKdiUShfRQHFjGQrzLQ61qGwMShPtDeH1 X-Received: by 2002:a17:903:124f:b0:1af:9c18:a160 with SMTP id u15-20020a170903124f00b001af9c18a160mr11981457plh.17.1684857130999; Tue, 23 May 2023 08:52:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684857130; cv=none; d=google.com; s=arc-20160816; b=MnMZEfRN/8PxhlvUhbeu2VStYNid2cvQNcmwBe//Y8NprfJFiKsWLP5J/tmYN415/R uW8UocuFESvozN56fAJp8+MRrRrXzcavL7ikYpyG9q6f0DLmFpPMHfGKzXm1begkFFFV n7Juzlbiep3cB51EBNAwxpnlDK0Oej3FlBRpImVQRv3he8Y2ELq1h621EvzXom95kM3D 4jR/aoIqwzoiKt6hP7MpCY+1OASHmzQkc1/wpjbK4uK6MhKW5Eq8I4NAnLc1e4OzTLyK M5HwegTmJDwktn1jEm09daKJAz/pH2mvbPwA378Ow3F0Hr2I40Q4P/n/Z3g6ZG26ZQeV mr8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=b4MGL8soVzdUtn25c18eAeH4/XfmEzKR9sMlt6Ncgr8=; b=QvN/1GWDnXyJ8VQmo1s1C/XgMlUBJ98vyCLI6HPqsufQRd5MJBWMFUAKFK9Lh1kvtK 73iAVbZvjkWpWGPGoQ5MIgUu09774jda7VSPCqyuEDgxbqDO6bZYSqbAwveaCwur9bil V1Cc3dqbM5PiDCJaEfHRLXyROOcTiaeFs1EifmJeU5x+CZqwgDp2HeyPlMq/BNKr54Po YA5Rb26f/xgng6TlHHvAcZbPt2IVu8rGTVML0KY7qAvOuJmoWFm9Nx3LaaCyPCTU7uxG ykpvO6FEDQECjdDTNarmjafNz3RG/+/ElrJTp2DpnRdRpTK2jyRyHTuVnb7KEgFpzCFN bedA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jj14-20020a170903048e00b001ae57456ab4si4584120plb.6.2023.05.23.08.51.56; Tue, 23 May 2023 08:52:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237564AbjEWPbz (ORCPT + 99 others); Tue, 23 May 2023 11:31:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38202 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237547AbjEWPbp (ORCPT ); Tue, 23 May 2023 11:31:45 -0400 Received: from albert.telenet-ops.be (albert.telenet-ops.be [IPv6:2a02:1800:110:4::f00:1a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5A8A218B for ; Tue, 23 May 2023 08:31:43 -0700 (PDT) Received: from ramsan.of.borg ([IPv6:2a02:1810:ac12:ed30:b0ac:7afd:272:4cff]) by albert.telenet-ops.be with bizsmtp id 0FXf2A0030Jkz7G06FXfJW; Tue, 23 May 2023 17:31:41 +0200 Received: from rox.of.borg ([192.168.97.57]) by ramsan.of.borg with esmtp (Exim 4.95) (envelope-from ) id 1q1Tyu-002t3V-Hy; Tue, 23 May 2023 17:31:39 +0200 Received: from geert by rox.of.borg with local (Exim 4.95) (envelope-from ) id 1q1Tz9-00Ckap-00; Tue, 23 May 2023 17:31:39 +0200 From: Geert Uytterhoeven To: Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Laurent Pinchart , Kieran Bingham Cc: dri-devel@lists.freedesktop.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org, Geert Uytterhoeven , Laurent Pinchart Subject: [PATCH v3 1/5] drm: shmobile: Use %p4cc to print fourcc codes Date: Tue, 23 May 2023 17:31:33 +0200 Message-Id: <1a63e5afc8a85f7ae10f7f4395c2d065ba1aeb59.1684854992.git.geert+renesas@glider.be> X-Mailer: git-send-email 2.34.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_LOW,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace the printing of hexadecimal fourcc format codes by pretty-printed format names, using the "%p4cc" format specifier. Signed-off-by: Geert Uytterhoeven Reviewed-by: Thomas Zimmermann Reviewed-by: Laurent Pinchart --- v3: - Add Reviewed-by, v2: - Add Reviewed-by. --- drivers/gpu/drm/shmobile/shmob_drm_crtc.c | 4 ++-- drivers/gpu/drm/shmobile/shmob_drm_kms.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c index d354ab3077cecf94..713a7612244c647a 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_crtc.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_crtc.c @@ -355,8 +355,8 @@ static int shmob_drm_crtc_mode_set(struct drm_crtc *crtc, format = shmob_drm_format_info(crtc->primary->fb->format->format); if (format == NULL) { - dev_dbg(sdev->dev, "mode_set: unsupported format %08x\n", - crtc->primary->fb->format->format); + dev_dbg(sdev->dev, "mode_set: unsupported format %p4cc\n", + &crtc->primary->fb->format->format); return -EINVAL; } diff --git a/drivers/gpu/drm/shmobile/shmob_drm_kms.c b/drivers/gpu/drm/shmobile/shmob_drm_kms.c index 60a2c8d8a0d947d2..3c5fe3bc183c7c13 100644 --- a/drivers/gpu/drm/shmobile/shmob_drm_kms.c +++ b/drivers/gpu/drm/shmobile/shmob_drm_kms.c @@ -96,8 +96,8 @@ shmob_drm_fb_create(struct drm_device *dev, struct drm_file *file_priv, format = shmob_drm_format_info(mode_cmd->pixel_format); if (format == NULL) { - dev_dbg(dev->dev, "unsupported pixel format %08x\n", - mode_cmd->pixel_format); + dev_dbg(dev->dev, "unsupported pixel format %p4cc\n", + &mode_cmd->pixel_format); return ERR_PTR(-EINVAL); } -- 2.34.1