staging: sm750fb: print error message with actual value
authorMatej Dujava <mdujava@kocurkovo.cz>
Thu, 30 Apr 2020 20:09:26 +0000 (22:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 May 2020 10:23:29 +0000 (12:23 +0200)
This patch will update error message, so it is same as error message in
another function.

Signed-off-by: Matej Dujava <mdujava@kocurkovo.cz>
Link: https://lore.kernel.org/r/1588277366-19354-4-git-send-email-mdujava@kocurkovo.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750.c

index c3ce7e6..a1a82e5 100644 (file)
@@ -390,7 +390,7 @@ static int lynxfb_ops_set_par(struct fb_info *info)
        var->accel_flags = 0;/*FB_ACCELF_TEXT;*/
 
        if (ret) {
-               pr_err("pixel bpp format not satisfied\n.");
+               pr_err("bpp %d not supported\n", var->bits_per_pixel);
                return ret;
        }
        ret = hw_sm750_crtc_setMode(crtc, var, fix);