drm: really make debug levels match in edid failure code
authorTormod Volden <debian.tormod@gmail.com>
Tue, 5 Jul 2011 20:12:53 +0000 (20:12 +0000)
committerDave Airlie <airlied@redhat.com>
Mon, 25 Jul 2011 11:01:55 +0000 (12:01 +0100)
Also disable the ascii dump and remove the literal printing of the
KERN_ERR macro in the log:

   [drm:drm_edid_block_valid] *ERROR* Raw EDID:
   <3>00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00  ................

v2: Remove the trailing empty line as well.

Signed-off-by: Tormod Volden <debian.tormod@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_edid.c

index 09292193dafe0b28466e37061acc7bee25e348f5..756af4d7ec74048f4776e7d9552fffb678f88770 100644 (file)
@@ -185,8 +185,8 @@ drm_edid_block_valid(u8 *raw_edid)
 bad:
        if (raw_edid) {
                printk(KERN_ERR "Raw EDID:\n");
-               print_hex_dump_bytes(KERN_ERR, DUMP_PREFIX_NONE, raw_edid, EDID_LENGTH);
-               printk(KERN_ERR "\n");
+               print_hex_dump(KERN_ERR, " \t", DUMP_PREFIX_NONE, 16, 1,
+                              raw_edid, EDID_LENGTH, false);
        }
        return 0;
 }