Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata do previous differently for wddump case.



details:   https://anonhg.NetBSD.org/src/rev/1254e85d1f1e
branches:  trunk
changeset: 533367:1254e85d1f1e
user:      yamt <yamt%NetBSD.org@localhost>
date:      Fri Jun 28 16:50:30 2002 +0000

description:
do previous differently for wddump case.

diffstat:

 sys/dev/ata/wd.c |  14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)

diffs (50 lines):

diff -r 8c0ef6d4938c -r 1254e85d1f1e sys/dev/ata/wd.c
--- a/sys/dev/ata/wd.c  Fri Jun 28 16:40:50 2002 +0000
+++ b/sys/dev/ata/wd.c  Fri Jun 28 16:50:30 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: wd.c,v 1.221 2002/06/28 16:40:50 yamt Exp $ */
+/*     $NetBSD: wd.c,v 1.222 2002/06/28 16:50:30 yamt Exp $ */
 
 /*
  * Copyright (c) 1998, 2001 Manuel Bouyer.  All rights reserved.
@@ -66,7 +66,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.221 2002/06/28 16:40:50 yamt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: wd.c,v 1.222 2002/06/28 16:50:30 yamt Exp $");
 
 #ifndef WDCDEBUG
 #define WDCDEBUG
@@ -1284,9 +1284,7 @@
        }
   
        while (nblks > 0) {
-               int do_perror;
 again:
-               do_perror = 0;
                wd->sc_bp = NULL;
                wd->sc_wdc_bio.blkno = blkno;
                wd->sc_wdc_bio.flags = ATA_POLL;
@@ -1325,7 +1323,7 @@
                        break;
                case ERROR:
                        printf("wddump: ");
-                       do_perror = 1;
+                       wdperror(wd);
                        err = EIO;
                        break;
                case NOERROR: 
@@ -1338,12 +1336,6 @@
                        if (wddumpmulti != 1) {
                                wddumpmulti = 1; /* retry in single-sector */
                                printf(", retrying\n");
-                       }
-                       if (do_perror) {
-                               printf("wddump: ");
-                               wdperror(wd);
-                       }
-                       if (wddumpmulti != 1) {
                                goto again;
                        }
                        printf("\n");



Home | Main Index | Thread Index | Old Index