Module Name:    src
Committed By:   hannken
Date:           Mon Nov  6 12:16:52 UTC 2023

Modified Files:
        src/sys/dev/usb: ugen.c

Log Message:
Undo the DPRINTFN part of the last commit.  It breaks i386 at least
when KERNHIST_LOG casts the pointer to uintmax_t.

Kernel ALL/i386 compiles again.


To generate a diff of this commit:
cvs rdiff -u -r1.174 -r1.175 src/sys/dev/usb/ugen.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/ugen.c
diff -u src/sys/dev/usb/ugen.c:1.174 src/sys/dev/usb/ugen.c:1.175
--- src/sys/dev/usb/ugen.c:1.174	Tue Oct 10 10:58:03 2023
+++ src/sys/dev/usb/ugen.c	Mon Nov  6 12:16:52 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: ugen.c,v 1.174 2023/10/10 10:58:03 simonb Exp $	*/
+/*	$NetBSD: ugen.c,v 1.175 2023/11/06 12:16:52 hannken Exp $	*/
 
 /*
  * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.174 2023/10/10 10:58:03 simonb Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ugen.c,v 1.175 2023/11/06 12:16:52 hannken Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_compat_netbsd.h"
@@ -1346,8 +1346,8 @@ ugenintr(struct usbd_xfer *xfer, void *a
 	usbd_get_xfer_status(xfer, NULL, NULL, &count, NULL);
 	ibuf = sce->ibuf;
 
-	DPRINTFN(5, "xfer=%p status=%d count=%d",
-		     xfer, status, count, 0);
+	DPRINTFN(5, "xfer=%#jx status=%d count=%d",
+		     (uintptr_t)xfer, status, count, 0);
 	DPRINTFN(5, "          data = %02x %02x %02x",
 		     ibuf[0], ibuf[1], ibuf[2], 0);
 

Reply via email to