Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/drm2/dist/drm/amd/amdgpu Fix clang build by...



details:   https://anonhg.NetBSD.org/src/rev/3ab0e6745412
branches:  trunk
changeset: 995678:3ab0e6745412
user:      maya <maya%NetBSD.org@localhost>
date:      Tue Jan 01 08:07:47 2019 +0000

description:
Fix clang build by using hhx to print u8 and x to print unsigned.

diffstat:

 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_dp.c |  8 ++++----
 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_uvd.c         |  6 +++---
 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_vce.c         |  6 +++---
 3 files changed, 10 insertions(+), 10 deletions(-)

diffs (86 lines):

diff -r 4d5efa5b290f -r 3ab0e6745412 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_dp.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_dp.c    Tue Jan 01 06:28:42 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_atombios_dp.c    Tue Jan 01 08:07:47 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_atombios_dp.c,v 1.1 2018/08/27 14:10:14 riastradh Exp $ */
+/*     $NetBSD: amdgpu_atombios_dp.c,v 1.2 2019/01/01 08:07:47 maya Exp $      */
 
 /*
  * Copyright 2007-8 Advanced Micro Devices, Inc.
@@ -27,7 +27,7 @@
  *          Jerome Glisse
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_atombios_dp.c,v 1.1 2018/08/27 14:10:14 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_atombios_dp.c,v 1.2 2019/01/01 08:07:47 maya Exp $");
 
 #include <drm/drmP.h>
 #include <drm/amdgpu_drm.h>
@@ -333,11 +333,11 @@
                return;
 
        if (drm_dp_dpcd_read(&amdgpu_connector->ddc_bus->aux, DP_SINK_OUI, buf, 3) == 3)
-               DRM_DEBUG_KMS("Sink OUI: %02hx%02hx%02hx\n",
+               DRM_DEBUG_KMS("Sink OUI: %02hhx%02hhx%02hhx\n",
                              buf[0], buf[1], buf[2]);
 
        if (drm_dp_dpcd_read(&amdgpu_connector->ddc_bus->aux, DP_BRANCH_OUI, buf, 3) == 3)
-               DRM_DEBUG_KMS("Branch OUI: %02hx%02hx%02hx\n",
+               DRM_DEBUG_KMS("Branch OUI: %02hhx%02hhx%02hhx\n",
                              buf[0], buf[1], buf[2]);
 }
 
diff -r 4d5efa5b290f -r 3ab0e6745412 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_uvd.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_uvd.c    Tue Jan 01 06:28:42 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_uvd.c    Tue Jan 01 08:07:47 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_uvd.c,v 1.3 2018/08/27 14:04:50 riastradh Exp $ */
+/*     $NetBSD: amdgpu_uvd.c,v 1.4 2019/01/01 08:07:47 maya Exp $      */
 
 /*
  * Copyright 2011 Advanced Micro Devices, Inc.
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_uvd.c,v 1.3 2018/08/27 14:04:50 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_uvd.c,v 1.4 2019/01/01 08:07:47 maya Exp $");
 
 #include <linux/firmware.h>
 #include <linux/module.h>
@@ -159,7 +159,7 @@
        family_id = le32_to_cpu(hdr->ucode_version) & 0xff;
        version_major = (le32_to_cpu(hdr->ucode_version) >> 24) & 0xff;
        version_minor = (le32_to_cpu(hdr->ucode_version) >> 8) & 0xff;
-       DRM_INFO("Found UVD firmware Version: %hu.%hu Family ID: %hu\n",
+       DRM_INFO("Found UVD firmware Version: %x.%x Family ID: %x\n",
                version_major, version_minor, family_id);
 
        adev->uvd.fw_version = ((version_major << 24) | (version_minor << 16) |
diff -r 4d5efa5b290f -r 3ab0e6745412 sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_vce.c
--- a/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_vce.c    Tue Jan 01 06:28:42 2019 +0000
+++ b/sys/external/bsd/drm2/dist/drm/amd/amdgpu/amdgpu_vce.c    Tue Jan 01 08:07:47 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: amdgpu_vce.c,v 1.3 2018/08/27 14:04:50 riastradh Exp $ */
+/*     $NetBSD: amdgpu_vce.c,v 1.4 2019/01/01 08:07:47 maya Exp $      */
 
 /*
  * Copyright 2013 Advanced Micro Devices, Inc.
@@ -28,7 +28,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: amdgpu_vce.c,v 1.3 2018/08/27 14:04:50 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: amdgpu_vce.c,v 1.4 2019/01/01 08:07:47 maya Exp $");
 
 #include <linux/firmware.h>
 #include <linux/module.h>
@@ -144,7 +144,7 @@
        version_major = (ucode_version >> 20) & 0xfff;
        version_minor = (ucode_version >> 8) & 0xfff;
        binary_id = ucode_version & 0xff;
-       DRM_INFO("Found VCE firmware Version: %hhd.%hhd Binary ID: %hhd\n",
+       DRM_INFO("Found VCE firmware Version: %x.%x Binary ID: %x\n",
                version_major, version_minor, binary_id);
        adev->vce.fw_version = ((version_major << 24) | (version_minor << 16) |
                                (binary_id << 8));



Home | Main Index | Thread Index | Old Index