From: LABBE Corentin Date: Thu, 4 Feb 2016 14:03:52 +0000 (+0100) Subject: drm: modes: add missing [drm] to message printing X-Git-Tag: v4.6-rc1~61^2~33^2~19 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=67fe85dd6df202d66a46054486d2b339ebed84c4;p=thirdparty%2Fkernel%2Flinux.git drm: modes: add missing [drm] to message printing The warning message in drm_mode_parse_command_line_for_connector miss the [drm] at beginning. This patch add it and take the opportunity to convert printk(KERN_WARNING to pr_warn() Signed-off-by: LABBE Corentin Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1454594633-15100-1-git-send-email-clabbe.montjoie@gmail.com --- diff --git a/drivers/gpu/drm/drm_modes.c b/drivers/gpu/drm/drm_modes.c index 20775c05235a4..f7448a5e95a9b 100644 --- a/drivers/gpu/drm/drm_modes.c +++ b/drivers/gpu/drm/drm_modes.c @@ -1371,8 +1371,7 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, } done: if (i >= 0) { - printk(KERN_WARNING - "parse error at position %i in video mode '%s'\n", + pr_warn("[drm] parse error at position %i in video mode '%s'\n", i, name); mode->specified = false; return false;