Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev fix this differently.



details:   https://anonhg.NetBSD.org/src/rev/5abed5886d32
branches:  trunk
changeset: 811319:5abed5886d32
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 23 01:06:20 2015 +0000

description:
fix this differently.

diffstat:

 sys/dev/dksubr.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (29 lines):

diff -r c7f9f05f6836 -r 5abed5886d32 sys/dev/dksubr.c
--- a/sys/dev/dksubr.c  Fri Oct 23 00:33:13 2015 +0000
+++ b/sys/dev/dksubr.c  Fri Oct 23 01:06:20 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: dksubr.c,v 1.79 2015/10/23 00:33:13 knakahara Exp $ */
+/* $NetBSD: dksubr.c,v 1.80 2015/10/23 01:06:20 christos Exp $ */
 
 /*-
  * Copyright (c) 1996, 1997, 1998, 1999, 2002, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.79 2015/10/23 00:33:13 knakahara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dksubr.c,v 1.80 2015/10/23 01:06:20 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -709,8 +709,8 @@
 
        /* Check transfer bounds against partition size. */
        if ((blkno < 0) || ((blkno + towrt) > nsects)) {
-               DPRINTF(DKDB_DUMP, ("%s: out of bounds blkno=%"PRId64", towrt=%d, "
-                   "nsects=%d\n", __func__, blkno, towrt, nsects));
+               DPRINTF(DKDB_DUMP, ("%s: out of bounds blkno=%jd", towrt=%d, "
+                   "nsects=%d\n", __func__, (intmax_t)blkno, towrt, nsects));
                return EINVAL;
        }
 



Home | Main Index | Thread Index | Old Index