Module Name:    src
Committed By:   kamil
Date:           Sat Feb 23 11:57:41 UTC 2019

Modified Files:
        src/sys/dev/scsipi: st.c

Log Message:
Correct printing type of b_blkno (int64_t) in st.c

Fixes build with kUBSan on NetBSD/i386.


To generate a diff of this commit:
cvs rdiff -u -r1.236 -r1.237 src/sys/dev/scsipi/st.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/scsipi/st.c
diff -u src/sys/dev/scsipi/st.c:1.236 src/sys/dev/scsipi/st.c:1.237
--- src/sys/dev/scsipi/st.c:1.236	Tue Feb 12 13:43:40 2019
+++ src/sys/dev/scsipi/st.c	Sat Feb 23 11:57:41 2019
@@ -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;
 	}

Reply via email to