Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/scsipi Correct printing type of b_blkno (int64_t) in...
details: https://anonhg.NetBSD.org/src/rev/02287d7fcecf
branches: trunk
changeset: 997118:02287d7fcecf
user: kamil <kamil%NetBSD.org@localhost>
date: Sat Feb 23 11:57:41 2019 +0000
description:
Correct printing type of b_blkno (int64_t) in st.c
Fixes build with kUBSan on NetBSD/i386.
diffstat:
sys/dev/scsipi/st.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r eaa42788b30c -r 02287d7fcecf sys/dev/scsipi/st.c
--- a/sys/dev/scsipi/st.c Sat Feb 23 11:41:08 2019 +0000
+++ b/sys/dev/scsipi/st.c Sat Feb 23 11:57:41 2019 +0000
@@ -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 @@
/* 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;
}
Home |
Main Index |
Thread Index |
Old Index