drm/fb: use printk to print out the switching to text mode error.
authorDave Airlie <airlied@redhat.com>
Mon, 7 Jun 2010 02:14:54 +0000 (12:14 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 7 Jun 2010 23:33:27 +0000 (09:33 +1000)
using DRM_ERROR, results in people blaming the drm code for the oops, and
not looking at the oops.

(sadly yes I've gotten reports).

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_fb_helper.c

index b3779d243aefc30f48768c67c2f5a261dd825ce2..08c4c926e65f58e1b28fabcb1bb30c3ac183f7b5 100644 (file)
@@ -264,7 +264,7 @@ bool drm_fb_helper_force_kernel_mode(void)
 int drm_fb_helper_panic(struct notifier_block *n, unsigned long ununsed,
                        void *panic_str)
 {
-       DRM_ERROR("panic occurred, switching back to text console\n");
+       printk(KERN_ERR "panic occurred, switching back to text console\n");
        return drm_fb_helper_force_kernel_mode();
        return 0;
 }