diff options
| author | kamil <kamil@NetBSD.org> | 2019-02-23 11:57:41 +0000 |
|---|---|---|
| committer | kamil <kamil@NetBSD.org> | 2019-02-23 11:57:41 +0000 |
| commit | bdb3abb2ca0bf989cbda9f37acfa192957eabb5b (patch) | |
| tree | 4713902d200854fc20c2a6922707758827281872 /sys/dev/scsipi | |
| parent | a87a233ae83dc361087db0d570e36bdb9470abb4 (diff) | |
Correct printing type of b_blkno (int64_t) in st.c
Fixes build with kUBSan on NetBSD/i386.
Diffstat (limited to 'sys/dev/scsipi')
| -rw-r--r-- | sys/dev/scsipi/st.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/scsipi/st.c b/sys/dev/scsipi/st.c index 49854c716eb..7cc51ad10a9 100644 --- a/sys/dev/scsipi/st.c +++ b/sys/dev/scsipi/st.c @@ -1,4 +1,4 @@ -/* $NetBSD: st.c,v 1.236 2019/02/12 13:43:40 kardel Exp $ */ +/* $NetBSD: st.c,v 1.237 2019/02/23 11:57:41 kamil Exp $ */ /*- * Copyright (c) 1998, 2004 The NetBSD Foundation, Inc. @@ -50,7 +50,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: st.c,v 1.236 2019/02/12 13:43:40 kardel Exp $"); +__KERNEL_RCSID(0, "$NetBSD: st.c,v 1.237 2019/02/23 11:57:41 kamil Exp $"); #ifdef _KERNEL_OPT #include "opt_scsi.h" @@ -1114,7 +1114,7 @@ ststrategy(struct buf *bp) /* If offset is negative, error */ if (bp->b_blkno < 0) { SC_DEBUG(periph, SCSIPI_DB3, - ("EINVAL: ststrategy negative blockcount %ld\n", bp->b_blkno)); + ("EINVAL: ststrategy negative blockcount %" PRId64 "\n", bp->b_blkno)); bp->b_error = EINVAL; goto abort; } |
