lib/edid.c: Log an error if unable to find edid or header
Failure to find an edid or header is more serious than the spew log level and should be an error. Signed-off-by: Jacob Garber <jgarber1@ualberta.ca> Change-Id: I660218f8b5f5e7f0b01daef0739db79418941515 Reviewed-on: https://review.coreboot.org/c/coreboot/+/32084 Reviewed-by: Patrick Georgi <pgeorgi@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
This commit is contained in:
		
				
					committed by
					
						 Patrick Georgi
						Patrick Georgi
					
				
			
			
				
	
			
			
			
						parent
						
							6a9d2f9899
						
					
				
				
					commit
					1855329fba
				
			| @@ -1141,14 +1141,14 @@ int decode_edid(unsigned char *edid, int size, struct edid *out) | ||||
| 	memset(out, 0, sizeof(*out)); | ||||
|  | ||||
| 	if (!edid) { | ||||
| 		printk(BIOS_SPEW, "No EDID found\n"); | ||||
| 		printk(BIOS_ERR, "No EDID found\n"); | ||||
| 		return EDID_ABSENT; | ||||
| 	} | ||||
|  | ||||
| 	dump_breakdown(edid); | ||||
|  | ||||
| 	if (memcmp(edid, "\x00\xFF\xFF\xFF\xFF\xFF\xFF\x00", 8)) { | ||||
| 		printk(BIOS_SPEW, "No header found\n"); | ||||
| 		printk(BIOS_ERR, "No header found\n"); | ||||
| 		return EDID_ABSENT; | ||||
| 	} | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user