Skip to contentSkip to conversation

drm: log level in print_hex_dump_bytes is redundant

PATCH New Kyle McMartin 1 participant 1 message Sep 1, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: log level in print_hex_dump_bytes is redundant

Ends up with a dmesg like:
[drm:drm_edid_block_valid] *ERROR* Raw EDID:
<3>00 ff ff ff ff ff ff 00 10 ac 29 a0 53 48 4e 31 ..........).SHN1 <3>14 12 01 03 0e 34 20 7f ff ff ff ff ff ff ff ff .....4 .........

Since print_hex_dump_bytes implicitly adds KERN_DEBUG.

Would probably be nice to pretty print the encoder that found the bad EDID, but it seems in some cases another caller of drm_edid_is_valid will do that, so probably unnecessary...

---

drivers/gpu/drm/drm_edid.c +1 -1
index 96e9631..32a167c 100644
@@ -186,7 +186,7 @@ drm_edid_block_valid(u8 *raw_edid)
 bad:
 	if (raw_edid) {
 		DRM_ERROR("Raw EDID:\n");
-		print_hex_dump_bytes(KERN_ERR, DUMP_PREFIX_NONE, raw_edid, EDID_LENGTH);
+		print_hex_dump_bytes("", DUMP_PREFIX_NONE, raw_edid, EDID_LENGTH);
 		printk("\n");
 	}
 	return 0;