Module Name: src Committed By: mrg Date: Tue Aug 20 06:18:54 UTC 2019
Modified Files: src/sys/dev/usb: usbnet.c Log Message: properly fix the kernhist calls. one must cast and cast and cast and maybe a fish will be caught... To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21 src/sys/dev/usb/usbnet.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/usb/usbnet.c diff -u src/sys/dev/usb/usbnet.c:1.20 src/sys/dev/usb/usbnet.c:1.21 --- src/sys/dev/usb/usbnet.c:1.20 Mon Aug 19 07:33:37 2019 +++ src/sys/dev/usb/usbnet.c Tue Aug 20 06:18:54 2019 @@ -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_input(struct usbnet * const un, u 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) {