Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/isa Fix compilation with FD_DEBUG.



details:   https://anonhg.NetBSD.org/src/rev/d0d98562539f
branches:  trunk
changeset: 583323:d0d98562539f
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jul 30 14:49:35 2005 +0000

description:
Fix compilation with FD_DEBUG.

diffstat:

 sys/dev/isa/fd.c |  13 +++++++------
 1 files changed, 7 insertions(+), 6 deletions(-)

diffs (41 lines):

diff -r 091f5f279f09 -r d0d98562539f sys/dev/isa/fd.c
--- a/sys/dev/isa/fd.c  Sat Jul 30 14:43:13 2005 +0000
+++ b/sys/dev/isa/fd.c  Sat Jul 30 14:49:35 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.58 2005/05/29 22:12:37 christos Exp $ */
+/*     $NetBSD: fd.c,v 1.59 2005/07/30 14:49:35 christos Exp $ */
 
 /*-
  * Copyright (c) 1998, 2003 The NetBSD Foundation, Inc.
@@ -88,7 +88,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.58 2005/05/29 22:12:37 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.59 2005/07/30 14:49:35 christos Exp $");
 
 #include "rnd.h"
 #include "opt_ddb.h"
@@ -613,8 +613,9 @@
            bp->b_blkno / (FDC_BSIZE / DEV_BSIZE) / fd->sc_type->seccyl;
 
 #ifdef FD_DEBUG
-       printf("fdstrategy: b_blkno %d b_bcount %ld blkno %d cylin %ld sz %d\n",
-           bp->b_blkno, bp->b_bcount, fd->sc_blkno, bp->b_cylinder, sz);
+       printf("fdstrategy: b_blkno %llu b_bcount %d blkno %llu cylin %d "
+           "sz %d\n", (unsigned long long)bp->b_blkno, bp->b_bcount,
+           (unsigned long long)fd->sc_blkno, bp->b_cylinder, sz);
 #endif
 
        /* Queue transfer on drive, activate drive and controller if idle. */
@@ -1162,8 +1163,8 @@
 #ifdef FD_DEBUG
                        fdcstatus(&fd->sc_dev, 7, bp->b_flags & B_READ ?
                            "read failed" : "write failed");
-                       printf("blkno %d nblks %d\n",
-                           fd->sc_blkno, fd->sc_nblks);
+                       printf("blkno %llu nblks %d\n",
+                           (unsigned long long)fd->sc_blkno, fd->sc_nblks);
 #endif
                        fdcretry(fdc);
                        goto loop;



Home | Main Index | Thread Index | Old Index