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/i915 Cast suseconds_t to long...



details:   https://anonhg.NetBSD.org/src/rev/97ec9c3f36b6
branches:  trunk
changeset: 365899:97ec9c3f36b6
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 07:09:28 2018 +0000

description:
Cast suseconds_t to long for %ld.  Use PRIx64, not %llx, for uint64_t.

diffstat:

 sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r 64def3a197a0 -r 97ec9c3f36b6 sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c
--- a/sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c      Mon Aug 27 07:09:17 2018 +0000
+++ b/sys/external/bsd/drm2/dist/drm/i915/i915_gpu_error.c      Mon Aug 27 07:09:28 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: i915_gpu_error.c,v 1.7 2018/08/27 06:08:25 riastradh Exp $     */
+/*     $NetBSD: i915_gpu_error.c,v 1.8 2018/08/27 07:09:28 riastradh Exp $     */
 
 /*
  * Copyright (c) 2008 Intel Corporation
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: i915_gpu_error.c,v 1.7 2018/08/27 06:08:25 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: i915_gpu_error.c,v 1.8 2018/08/27 07:09:28 riastradh Exp $");
 
 #include <sys/param.h>
 
@@ -357,7 +357,7 @@
                   (long)error->time.tv_usec);
        err_printf(m, "Kernel: %d\n", __NetBSD_Version__);
        err_printf(m, "Time: %ld s %ld us\n", error->time.tv_sec,
-                  error->time.tv_usec);
+                  (long)error->time.tv_usec);
        max_hangcheck_score = 0;
        for (i = 0; i < ARRAY_SIZE(error->ring); i++) {
                if (error->ring[i].hangcheck_score > max_hangcheck_score)
@@ -474,7 +474,7 @@
                                hws_offset += LRC_PPHWSP_PN * PAGE_SIZE;
                                hws_page = &obj->pages[LRC_PPHWSP_PN][0];
                        }
-                       err_printf(m, "%s --- HW Status = 0x%08llx\n",
+                       err_printf(m, "%s --- HW Status = 0x%08"PRIx64"\n",
                                   dev_priv->ring[i].name, hws_offset);
                        offset = 0;
                        for (elt = 0; elt < PAGE_SIZE/16; elt += 4) {



Home | Main Index | Thread Index | Old Index