Fix DRM_DEBUG builds.
authorpirofti <pirofti@openbsd.org>
Fri, 5 Jan 2018 09:52:34 +0000 (09:52 +0000)
committerpirofti <pirofti@openbsd.org>
Fri, 5 Jan 2018 09:52:34 +0000 (09:52 +0000)
OK jsg@.

sys/dev/pci/drm/i915/intel_dp.c
sys/dev/pci/drm/radeon/atombios_dp.c

index 7779a69..ac2d714 100644 (file)
@@ -4056,11 +4056,11 @@ intel_dp_probe_oui(struct intel_dp *intel_dp)
                return;
 
        if (intel_dp_dpcd_read_wake(&intel_dp->aux, DP_SINK_OUI, buf, 3) == 3)
-               DRM_DEBUG_KMS("Sink OUI: %02hx%02hx%02hx\n",
+               DRM_DEBUG_KMS("Sink OUI: %02x%02x%02x\n",
                              buf[0], buf[1], buf[2]);
 
        if (intel_dp_dpcd_read_wake(&intel_dp->aux, DP_BRANCH_OUI, buf, 3) == 3)
-               DRM_DEBUG_KMS("Branch OUI: %02hx%02hx%02hx\n",
+               DRM_DEBUG_KMS("Branch OUI: %02x%02x%02x\n",
                              buf[0], buf[1], buf[2]);
 }
 
index 0fef9a1..5e1ed10 100644 (file)
@@ -373,11 +373,11 @@ static void radeon_dp_probe_oui(struct radeon_connector *radeon_connector)
                return;
 
        if (drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_SINK_OUI, buf, 3) == 3)
-               DRM_DEBUG_KMS("Sink OUI: %02hx%02hx%02hx\n",
+               DRM_DEBUG_KMS("Sink OUI: %02x%02x%02x\n",
                              buf[0], buf[1], buf[2]);
 
        if (drm_dp_dpcd_read(&radeon_connector->ddc_bus->aux, DP_BRANCH_OUI, buf, 3) == 3)
-               DRM_DEBUG_KMS("Branch OUI: %02hx%02hx%02hx\n",
+               DRM_DEBUG_KMS("Branch OUI: %02x%02x%02x\n",
                              buf[0], buf[1], buf[2]);
 }