Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb properly fix the kernhist calls.



details:   https://anonhg.NetBSD.org/src/rev/2713b64e99c2
branches:  trunk
changeset: 458999:2713b64e99c2
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Aug 20 06:18:54 2019 +0000

description:
properly fix the kernhist calls.

one must cast and cast and cast and maybe a fish will be caught...

diffstat:

 sys/dev/usb/usbnet.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 48ea21fbf5b0 -r 2713b64e99c2 sys/dev/usb/usbnet.c
--- a/sys/dev/usb/usbnet.c      Tue Aug 20 04:11:22 2019 +0000
+++ b/sys/dev/usb/usbnet.c      Tue Aug 20 06:18:54 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: usbnet.c,v 1.20 2019/08/19 07:33:37 mrg Exp $  */
+/*     $NetBSD: usbnet.c,v 1.21 2019/08/20 06:18:54 mrg Exp $  */
 
 /*
  * Copyright (c) 2019 Matthew R. Green
@@ -33,7 +33,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.20 2019/08/19 07:33:37 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: usbnet.c,v 1.21 2019/08/20 06:18:54 mrg Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -277,7 +277,7 @@
 
        usbnet_isowned_rx(un);
        DPRINTFN(0, "called! un %jx buf %jx len %ju",
-           (uintmax_t)un, (uintmax_t)buf, buflen, 0);
+           (uintmax_t)(uintptr_t)un, (uintmax_t)(uintptr_t)buf, buflen, 0);
 
        m = usbnet_newbuf(buflen);
        if (m == NULL) {



Home | Main Index | Thread Index | Old Index