Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/acorn32/mainbus Fix printf format from daddr_t chan...



details:   https://anonhg.NetBSD.org/src/rev/57b91e844a06
branches:  trunk
changeset: 542501:57b91e844a06
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Fri Jan 31 02:05:41 2003 +0000

description:
Fix printf format from daddr_t changes.

diffstat:

 sys/arch/acorn32/mainbus/fd.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (23 lines):

diff -r 806c85eadabb -r 57b91e844a06 sys/arch/acorn32/mainbus/fd.c
--- a/sys/arch/acorn32/mainbus/fd.c     Fri Jan 31 01:38:35 2003 +0000
+++ b/sys/arch/acorn32/mainbus/fd.c     Fri Jan 31 02:05:41 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.13 2003/01/01 00:25:02 thorpej Exp $  */
+/*     $NetBSD: fd.c,v 1.14 2003/01/31 02:05:41 thorpej Exp $  */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1052,10 +1052,11 @@
                head = sec / type->sectrac;
                sec -= head * type->sectrac;
 #ifdef DIAGNOSTIC
-               {int block;
+               {daddr_t  block;
                 block = (fd->sc_cylin * type->heads + head) * type->sectrac + sec;
                 if (block != fd->sc_blkno) {
-                        printf("fdcintr: block %d != blkno %d\n",      
+                        printf("fdcintr: block %" PRId64
+                            " != blkno %" PRId64 "\n", 
                                block, fd->sc_blkno);
 #ifdef DDB
                         Debugger();



Home | Main Index | Thread Index | Old Index