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/52f93ed22091
branches:  trunk
changeset: 449120:52f93ed22091
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 2dac53245409 -r 52f93ed22091 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