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/nouveau/nvkm Fix 64-bit printfs.



details:   https://anonhg.NetBSD.org/src/rev/05c448da07ec
branches:  trunk
changeset: 992739:05c448da07ec
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:39:20 2018 +0000

description:
Fix 64-bit printfs.

diffstat:

 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_engine.c                 |   6 ++--
 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_ioctl.c                  |   6 ++--
 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_object.c                 |  10 +++---
 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_subdev.c                 |  14 +++++-----
 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_base.c |  10 +++---
 sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/ltc/nouveau_nvkm_subdev_ltc_gf100.c      |   8 ++--
 6 files changed, 27 insertions(+), 27 deletions(-)

diffs (243 lines):

diff -r 743ae74a430e -r 05c448da07ec sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_engine.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_engine.c       Mon Aug 27 07:39:07 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_engine.c       Mon Aug 27 07:39:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_core_engine.c,v 1.2 2018/08/27 04:58:30 riastradh Exp $   */
+/*     $NetBSD: nouveau_nvkm_core_engine.c,v 1.3 2018/08/27 07:39:20 riastradh Exp $   */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -24,7 +24,7 @@
  * Authors: Ben Skeggs
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_engine.c,v 1.2 2018/08/27 04:58:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_engine.c,v 1.3 2018/08/27 07:39:20 riastradh Exp $");
 
 #include <core/engine.h>
 #include <core/device.h>
@@ -112,7 +112,7 @@
 
                engine->subdev.oneinit = true;
                time = ktime_to_us(ktime_get()) - time;
-               nvkm_trace(subdev, "one-time init completed in %lldus\n", time);
+               nvkm_trace(subdev, "one-time init completed in %"PRId64"us\n", time);
        }
 
        if (engine->func->init)
diff -r 743ae74a430e -r 05c448da07ec sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_ioctl.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_ioctl.c        Mon Aug 27 07:39:07 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_ioctl.c        Mon Aug 27 07:39:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_core_ioctl.c,v 1.3 2018/08/27 07:35:56 riastradh Exp $    */
+/*     $NetBSD: nouveau_nvkm_core_ioctl.c,v 1.4 2018/08/27 07:39:20 riastradh Exp $    */
 
 /*
  * Copyright 2014 Red Hat Inc.
@@ -24,7 +24,7 @@
  * Authors: Ben Skeggs <bskeggs%redhat.com@localhost>
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_ioctl.c,v 1.3 2018/08/27 07:35:56 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_ioctl.c,v 1.4 2018/08/27 07:39:20 riastradh Exp $");
 
 #include <core/ioctl.h>
 #include <core/client.h>
@@ -43,7 +43,7 @@
 
        nvif_ioctl(object, "nop size %d\n", size);
        if (nvif_unpack(args->v0, 0, 0, false)) {
-               nvif_ioctl(object, "nop vers %lld\n", args->v0.version);
+               nvif_ioctl(object, "nop vers %"PRId64"\n", args->v0.version);
                args->v0.version = NVIF_VERSION_LATEST;
        }
 
diff -r 743ae74a430e -r 05c448da07ec sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_object.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_object.c       Mon Aug 27 07:39:07 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_object.c       Mon Aug 27 07:39:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_core_object.c,v 1.4 2018/08/27 07:36:07 riastradh Exp $   */
+/*     $NetBSD: nouveau_nvkm_core_object.c,v 1.5 2018/08/27 07:39:20 riastradh Exp $   */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -24,7 +24,7 @@
  * Authors: Ben Skeggs
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_object.c,v 1.4 2018/08/27 07:36:07 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_object.c,v 1.5 2018/08/27 07:39:20 riastradh Exp $");
 
 #include <core/object.h>
 #include <core/client.h>
@@ -140,7 +140,7 @@
        }
 
        time = ktime_to_us(ktime_get()) - time;
-       nvif_debug(object, "%s completed in %lldus\n", action, time);
+       nvif_debug(object, "%s completed in %"PRId64"us\n", action, time);
        return 0;
 
 fail:
@@ -179,7 +179,7 @@
        }
 
        time = ktime_to_us(ktime_get()) - time;
-       nvif_debug(object, "init completed in %lldus\n", time);
+       nvif_debug(object, "init completed in %"PRId64"us\n", time);
        return 0;
 
 fail_child:
@@ -210,7 +210,7 @@
                data = object->func->dtor(object);
        nvkm_engine_unref(&object->engine);
        time = ktime_to_us(ktime_get()) - time;
-       nvif_debug(object, "destroy completed in %lldus...\n", time);
+       nvif_debug(object, "destroy completed in %"PRId64"us...\n", time);
        return data;
 }
 
diff -r 743ae74a430e -r 05c448da07ec sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_subdev.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_subdev.c       Mon Aug 27 07:39:07 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/core/nouveau_nvkm_core_subdev.c       Mon Aug 27 07:39:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_core_subdev.c,v 1.2 2018/08/27 04:58:30 riastradh Exp $   */
+/*     $NetBSD: nouveau_nvkm_core_subdev.c,v 1.3 2018/08/27 07:39:20 riastradh Exp $   */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -24,7 +24,7 @@
  * Authors: Ben Skeggs
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_subdev.c,v 1.2 2018/08/27 04:58:30 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_core_subdev.c,v 1.3 2018/08/27 07:39:20 riastradh Exp $");
 
 #include <core/subdev.h>
 #include <core/device.h>
@@ -111,7 +111,7 @@
        }
 
        time = ktime_to_us(ktime_get()) - time;
-       nvkm_trace(subdev, "%s completed in %lldus\n", action, time);
+       nvkm_trace(subdev, "%s completed in %"PRId64"us\n", action, time);
        return 0;
 }
 
@@ -132,7 +132,7 @@
        }
 
        time = ktime_to_us(ktime_get()) - time;
-       nvkm_trace(subdev, "preinit completed in %lldus\n", time);
+       nvkm_trace(subdev, "preinit completed in %"PRId64"us\n", time);
        return 0;
 }
 
@@ -157,7 +157,7 @@
 
                subdev->oneinit = true;
                time = ktime_to_us(ktime_get()) - time;
-               nvkm_trace(subdev, "one-time init completed in %lldus\n", time);
+               nvkm_trace(subdev, "one-time init completed in %"PRId64"us\n", time);
        }
 
        if (subdev->func->init) {
@@ -169,7 +169,7 @@
        }
 
        time = ktime_to_us(ktime_get()) - time;
-       nvkm_trace(subdev, "init completed in %lldus\n", time);
+       nvkm_trace(subdev, "init completed in %"PRId64"us\n", time);
        return 0;
 }
 
@@ -185,7 +185,7 @@
                if (subdev->func->dtor)
                        *psubdev = subdev->func->dtor(subdev);
                time = ktime_to_us(ktime_get()) - time;
-               nvkm_trace(subdev, "destroy completed in %lldus\n", time);
+               nvkm_trace(subdev, "destroy completed in %"PRId64"us\n", time);
                kfree(*psubdev);
                *psubdev = NULL;
        }
diff -r 743ae74a430e -r 05c448da07ec sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_base.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_base.c       Mon Aug 27 07:39:07 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/engine/device/nouveau_nvkm_engine_device_base.c       Mon Aug 27 07:39:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_engine_device_base.c,v 1.3 2018/08/27 07:38:42 riastradh Exp $    */
+/*     $NetBSD: nouveau_nvkm_engine_device_base.c,v 1.4 2018/08/27 07:39:20 riastradh Exp $    */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -24,7 +24,7 @@
  * Authors: Ben Skeggs
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_device_base.c,v 1.3 2018/08/27 07:38:42 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_engine_device_base.c,v 1.4 2018/08/27 07:39:20 riastradh Exp $");
 
 #include "priv.h"
 #include "acpi.h"
@@ -2189,7 +2189,7 @@
                device->func->fini(device, suspend);
 
        time = ktime_to_us(ktime_get()) - time;
-       nvdev_trace(device, "%s completed in %lldus...\n", action, time);
+       nvdev_trace(device, "%s completed in %"PRId64"us...\n", action, time);
        return 0;
 
 fail:
@@ -2234,7 +2234,7 @@
                goto fail;
 
        time = ktime_to_us(ktime_get()) - time;
-       nvdev_trace(device, "preinit completed in %lldus\n", time);
+       nvdev_trace(device, "preinit completed in %"PRId64"us\n", time);
        return 0;
 
 fail:
@@ -2275,7 +2275,7 @@
        nvkm_acpi_init(device);
 
        time = ktime_to_us(ktime_get()) - time;
-       nvdev_trace(device, "init completed in %lldus\n", time);
+       nvdev_trace(device, "init completed in %"PRId64"us\n", time);
        return 0;
 
 fail_subdev:
diff -r 743ae74a430e -r 05c448da07ec sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/ltc/nouveau_nvkm_subdev_ltc_gf100.c
--- a/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/ltc/nouveau_nvkm_subdev_ltc_gf100.c    Mon Aug 27 07:39:07 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/nouveau/nvkm/subdev/ltc/nouveau_nvkm_subdev_ltc_gf100.c    Mon Aug 27 07:39:20 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: nouveau_nvkm_subdev_ltc_gf100.c,v 1.2 2018/08/27 04:58:34 riastradh Exp $      */
+/*     $NetBSD: nouveau_nvkm_subdev_ltc_gf100.c,v 1.3 2018/08/27 07:39:20 riastradh Exp $      */
 
 /*
  * Copyright 2012 Red Hat Inc.
@@ -24,7 +24,7 @@
  * Authors: Ben Skeggs
  */
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_subdev_ltc_gf100.c,v 1.2 2018/08/27 04:58:34 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: nouveau_nvkm_subdev_ltc_gf100.c,v 1.3 2018/08/27 07:39:20 riastradh Exp $");
 
 #include "priv.h"
 
@@ -139,7 +139,7 @@
                nvkm_warn(&ltc->subdev, "LTC invalidate timeout\n");
 
        if (taken > 0)
-               nvkm_debug(&ltc->subdev, "LTC invalidate took %lld ns\n", taken);
+               nvkm_debug(&ltc->subdev, "LTC invalidate took %"PRId64" ns\n", taken);
 }
 
 void
@@ -154,7 +154,7 @@
                nvkm_warn(&ltc->subdev, "LTC flush timeout\n");
 
        if (taken > 0)
-               nvkm_debug(&ltc->subdev, "LTC flush took %lld ns\n", taken);
+               nvkm_debug(&ltc->subdev, "LTC flush took %"PRId64" ns\n", taken);
 }
 
 /* TODO: Figure out tag memory details and drop the over-cautious allocation.



Home | Main Index | Thread Index | Old Index