On Thu, Dec 21, 2017 at 04:11:44PM +0200, Paul Irofti wrote:
> On Thu, Dec 21, 2017 at 02:25:41PM +0100, Mark Kettenis wrote:
> > > Date: Thu, 21 Dec 2017 13:01:31 +0200
> > > From: Paul Irofti <p...@irofti.net>
> > > 
> > > If no one objects, I will commit this tomorrow.
> > 
> > Fix is wrong since it will break with gcc.  Probably best to just use
> > %02x, just like we did for printing duids.
> 
> Sure thing.
> 

ok jsg@

> 
> Index: dev/pci/drm/i915/intel_dp.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/drm/i915/intel_dp.c,v
> retrieving revision 1.29
> diff -u -p -u -p -r1.29 intel_dp.c
> --- dev/pci/drm/i915/intel_dp.c       30 Sep 2017 07:36:56 -0000      1.29
> +++ dev/pci/drm/i915/intel_dp.c       21 Dec 2017 14:10:45 -0000
> @@ -4056,11 +4056,11 @@ intel_dp_probe_oui(struct intel_dp *inte
>               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: dev/pci/drm/radeon/atombios_dp.c
> ===================================================================
> RCS file: /cvs/src/sys/dev/pci/drm/radeon/atombios_dp.c,v
> retrieving revision 1.7
> diff -u -p -u -p -r1.7 atombios_dp.c
> --- dev/pci/drm/radeon/atombios_dp.c  1 Jul 2017 16:14:10 -0000       1.7
> +++ dev/pci/drm/radeon/atombios_dp.c  21 Dec 2017 14:10:45 -0000
> @@ -373,11 +373,11 @@ static void radeon_dp_probe_oui(struct r
>               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]);
>  }
>  
> 

Reply via email to