]> git.itanic.dy.fi Git - linux-stable/commitdiff
fbcon: Fix incorrect printed function name in fbcon_prepare_logo()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 22 Jan 2024 15:04:58 +0000 (16:04 +0100)
committerHelge Deller <deller@gmx.de>
Mon, 22 Jan 2024 21:41:15 +0000 (22:41 +0100)
If the boot logo does not fit, a message is printed, including a wrong
function name prefix.  Instead of correcting the function name (or using
__func__), just use "fbcon", like is done in several other messages.

While at it, modernize the call by switching to pr_info().

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/core/fbcon.c

index 63af6ab034b5f1bb45992a4074f8862d528b38d3..1183e7a871f8b270a9ff2106cef15e44720184a4 100644 (file)
@@ -631,8 +631,7 @@ static void fbcon_prepare_logo(struct vc_data *vc, struct fb_info *info,
 
        if (logo_lines > vc->vc_bottom) {
                logo_shown = FBCON_LOGO_CANSHOW;
-               printk(KERN_INFO
-                      "fbcon_init: disable boot-logo (boot-logo bigger than screen).\n");
+               pr_info("fbcon: disable boot-logo (boot-logo bigger than screen).\n");
        } else {
                logo_shown = FBCON_LOGO_DRAW;
                vc->vc_top = logo_lines;