]> Pileus Git - ~andy/linux/blobdiff - drivers/gpu/drm/drm_crtc.c
drm/nouveau: fix backlight mask on ppc powerbook
[~andy/linux] / drivers / gpu / drm / drm_crtc.c
index b6a8f7ffb47f522ff0f9ab8739e00dd2ad015118..d6cf77c472e710cf246193dca874bd3b8bc72b9e 100644 (file)
@@ -2489,6 +2489,8 @@ static int format_check(const struct drm_mode_fb_cmd2 *r)
        case DRM_FORMAT_YVU444:
                return 0;
        default:
+               DRM_DEBUG_KMS("invalid pixel format %s\n",
+                             drm_get_format_name(r->pixel_format));
                return -EINVAL;
        }
 }
@@ -3828,7 +3830,8 @@ void drm_fb_get_bpp_depth(uint32_t format, unsigned int *depth,
                *bpp = 32;
                break;
        default:
-               DRM_DEBUG_KMS("unsupported pixel format\n");
+               DRM_DEBUG_KMS("unsupported pixel format %s\n",
+                             drm_get_format_name(format));
                *depth = 0;
                *bpp = 0;
                break;