Skip to content

Commit 67fe85d

Browse files
montjoiedanvet
authored andcommitted
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 <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 44084ef commit 67fe85d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/gpu/drm/drm_modes.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1371,8 +1371,7 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option,
13711371
}
13721372
done:
13731373
if (i >= 0) {
1374-
printk(KERN_WARNING
1375-
"parse error at position %i in video mode '%s'\n",
1374+
pr_warn("[drm] parse error at position %i in video mode '%s'\n",
13761375
i, name);
13771376
mode->specified = false;
13781377
return false;

0 commit comments

Comments
 (0)