Skip to content

Commit d92b057

Browse files
geertutdz
authored andcommitted
drm: shmobile: Use %p4cc to print fourcc codes
Replace the printing of hexadecimal fourcc format codes by pretty-printed format names, using the "%p4cc" format specifier. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/1a63e5afc8a85f7ae10f7f4395c2d065ba1aeb59.1684854992.git.geert+renesas@glider.be
1 parent 5565a8e commit d92b057

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/gpu/drm/shmobile/shmob_drm_crtc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,8 @@ static int shmob_drm_crtc_mode_set(struct drm_crtc *crtc,
355355

356356
format = shmob_drm_format_info(crtc->primary->fb->format->format);
357357
if (format == NULL) {
358-
dev_dbg(sdev->dev, "mode_set: unsupported format %08x\n",
359-
crtc->primary->fb->format->format);
358+
dev_dbg(sdev->dev, "mode_set: unsupported format %p4cc\n",
359+
&crtc->primary->fb->format->format);
360360
return -EINVAL;
361361
}
362362

drivers/gpu/drm/shmobile/shmob_drm_kms.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ shmob_drm_fb_create(struct drm_device *dev, struct drm_file *file_priv,
9696

9797
format = shmob_drm_format_info(mode_cmd->pixel_format);
9898
if (format == NULL) {
99-
dev_dbg(dev->dev, "unsupported pixel format %08x\n",
100-
mode_cmd->pixel_format);
99+
dev_dbg(dev->dev, "unsupported pixel format %p4cc\n",
100+
&mode_cmd->pixel_format);
101101
return ERR_PTR(-EINVAL);
102102
}
103103

0 commit comments

Comments
 (0)