From a955fefd146bedf1913dc81c5af66581bcb668a4 Mon Sep 17 00:00:00 2001 From: Edward O'Callaghan Date: Tue, 11 Nov 2014 16:02:05 +1100 Subject: drivers/intel/gma/intel_dp.c: Fix printf type-specifier '%02hx' is unsigned short, where as the argument is typed as uint8_t and so '%02hhx' is actually correct here. Found-by: Clang Change-Id: I40c48dcecf12845f4708e511236184908e90fb56 Signed-off-by: Edward O'Callaghan Reviewed-on: http://review.coreboot.org/7428 Reviewed-by: Paul Menzel Reviewed-by: Marc Jones Tested-by: build bot (Jenkins) --- src/drivers/intel/gma/intel_dp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/drivers/intel/gma/intel_dp.c b/src/drivers/intel/gma/intel_dp.c index 7aca28925d..dc2a957cdd 100644 --- a/src/drivers/intel/gma/intel_dp.c +++ b/src/drivers/intel/gma/intel_dp.c @@ -1533,7 +1533,7 @@ intel_dp_get_dpcd(struct intel_dp *intel_dp) return 0; } - printk(BIOS_SPEW, "DPCD: %02hx%02hx%02hx%02hx%02hx%02hx%02hx%02hx\n", + printk(BIOS_SPEW, "DPCD: %02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx%02hhx\n", intel_dp->dpcd[0], intel_dp->dpcd[1], intel_dp->dpcd[2], intel_dp->dpcd[3], intel_dp->dpcd[4], intel_dp->dpcd[5], intel_dp->dpcd[6], intel_dp->dpcd[7]); -- cgit v1.2.3