Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/x68k/dev Fix printf format for DIAGNOSTIC, in the w...



details:   https://anonhg.NetBSD.org/src/rev/a635b6bbdf7a
branches:  trunk
changeset: 542594:a635b6bbdf7a
user:      isaki <isaki%NetBSD.org@localhost>
date:      Sun Feb 02 08:37:28 2003 +0000

description:
Fix printf format for DIAGNOSTIC, in the wake of daddr_t having changed.
Use PRId64, instead of %lld.

diffstat:

 sys/arch/x68k/dev/fd.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 2037c36c57a4 -r a635b6bbdf7a sys/arch/x68k/dev/fd.c
--- a/sys/arch/x68k/dev/fd.c    Sun Feb 02 07:10:54 2003 +0000
+++ b/sys/arch/x68k/dev/fd.c    Sun Feb 02 08:37:28 2003 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fd.c,v 1.52 2003/01/25 14:13:46 isaki Exp $    */
+/*     $NetBSD: fd.c,v 1.53 2003/02/02 08:37:28 isaki Exp $    */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -1223,7 +1223,7 @@
                 if (block != fd->sc_blkno) {
                         printf("C H R N: %d %d %d %d\n",
                                fd->sc_cylin, head, sec, type->secsize);
-                        printf("fdcintr: doio: block %d != blkno %d\n",
+                        printf("fdcintr: doio: block %d != blkno %" PRId64 "\n",
                                block, fd->sc_blkno);
 #ifdef DDB
                         Debugger();
@@ -1300,7 +1300,7 @@
                         * (1 << (type->secsize - 2));
                 block += (fd->sc_part == SEC_P01) ? 1 : 0;
                 if (block != fd->sc_blkno) {
-                        printf("fdcintr: block %d != blkno %d\n",
+                        printf("fdcintr: block %d != blkno %" PRId64 "\n",
                                block, fd->sc_blkno);
 #ifdef DDB
                         Debugger();
@@ -1385,7 +1385,7 @@
 #endif
                        fdcstatus(&fd->sc_dev, 7, bp->b_flags & B_READ ?
                                  "read failed" : "write failed");
-                       printf("blkno %lld nblks %d\n",
+                       printf("blkno %" PRId64 " nblks %d\n",
                            fd->sc_blkno, fd->sc_nblks);
                        fdcretry(fdc);
                        goto loop;
@@ -1424,7 +1424,7 @@
 #endif
                        fdcstatus(&fd->sc_dev, 7, bp->b_flags & B_READ ?
                                  "read failed" : "write failed");
-                       printf("blkno %lld nblks %d\n",
+                       printf("blkno %" PRId64 " nblks %d\n",
                            fd->sc_blkno, fd->sc_nblks);
                        fdcretry(fdc);
                        goto loop;



Home | Main Index | Thread Index | Old Index