Module Name:    src
Committed By:   kre
Date:           Sat Sep 21 12:57:25 UTC 2019

Modified Files:
        src/sys/dev/ic: mpt.c

Log Message:
bus_addt_t is different widths on different archs, so there is no
one simple %?x format that will always work to print it.  Cast to
intmax_t and use %jx which should work everywhere.


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/ic/mpt.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/ic/mpt.c
diff -u src/sys/dev/ic/mpt.c:1.19 src/sys/dev/ic/mpt.c:1.20
--- src/sys/dev/ic/mpt.c:1.19	Sat Sep 21 07:08:27 2019
+++ src/sys/dev/ic/mpt.c	Sat Sep 21 12:57:25 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: mpt.c,v 1.19 2019/09/21 07:08:27 maxv Exp $	*/
+/*	$NetBSD: mpt.c,v 1.20 2019/09/21 12:57:25 kre Exp $	*/
 
 /*
  * Copyright (c) 2000, 2001 by Greg Ansley
@@ -110,7 +110,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mpt.c,v 1.19 2019/09/21 07:08:27 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mpt.c,v 1.20 2019/09/21 12:57:25 kre Exp $");
 
 #include <dev/ic/mpt.h>
 
@@ -327,8 +327,8 @@ mpt_send_cmd(mpt_softc_t *mpt, request_t
 	if (mpt->verbose > 1) {
 		u_int32_t *pReq;
 		pReq = req->req_vbuf;
-		mpt_prt(mpt, "Send Request %d (%#lx):",
-		    req->index, req->req_pbuf);
+		mpt_prt(mpt, "Send Request %d (%#jx):",
+		    req->index, (intmax_t)req->req_pbuf);
 		mpt_prt(mpt, "%08x %08x %08x %08x",
 		    pReq[0], pReq[1], pReq[2], pReq[3]);
 		mpt_prt(mpt, "%08x %08x %08x %08x",

Reply via email to