Module Name:    src
Committed By:   andvar
Date:           Sun Dec 17 21:51:29 UTC 2023

Modified Files:
        src/sys/arch/x68k/dev: bmd.c

Log Message:
Fix format specifiers and use BMD_UNIT(dev) macro to fix BMD_DEBUG build.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sys/arch/x68k/dev/bmd.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/arch/x68k/dev/bmd.c
diff -u src/sys/arch/x68k/dev/bmd.c:1.26 src/sys/arch/x68k/dev/bmd.c:1.27
--- src/sys/arch/x68k/dev/bmd.c:1.26	Thu May 26 14:33:29 2022
+++ src/sys/arch/x68k/dev/bmd.c	Sun Dec 17 21:51:29 2023
@@ -1,4 +1,4 @@
-/*	$NetBSD: bmd.c,v 1.26 2022/05/26 14:33:29 tsutsui Exp $	*/
+/*	$NetBSD: bmd.c,v 1.27 2023/12/17 21:51:29 andvar Exp $	*/
 
 /*
  * Copyright (c) 2002 Tetsuya Isaki. All rights reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bmd.c,v 1.26 2022/05/26 14:33:29 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bmd.c,v 1.27 2023/12/17 21:51:29 andvar Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -232,7 +232,7 @@ bmdopen(dev_t dev, int oflags, int devty
 {
 	struct bmd_softc *sc;
 
-	DPRINTF(("%s%d\n", __func__, unit));
+	DPRINTF(("%s%d\n", __func__, BMD_UNIT(dev)));
 
 	sc = device_lookup_private(&bmd_cd, BMD_UNIT(dev));
 	if (sc == NULL)
@@ -291,7 +291,7 @@ bmdstrategy(struct buf *bp)
 		goto done;
 	}
 
-	DPRINTF(("bmdstrategy: %s blkno %d bcount %ld:",
+	DPRINTF(("bmdstrategy: %s blkno %" PRIx64 " bcount %d:",
 		(bp->b_flags & B_READ) ? "read " : "write",
 		bp->b_blkno, bp->b_bcount));
 

Reply via email to