Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata Don't put leading space, otherwise diskerr() pri...



details:   https://anonhg.NetBSD.org/src/rev/424aaec2db68
branches:  trunk
changeset: 481264:424aaec2db68
user:      enami <enami%NetBSD.org@localhost>
date:      Tue Jan 25 09:33:12 2000 +0000

description:
Don't put leading space, otherwise diskerr() prints unnecessary space
like this:
wd0h:  aborted command reading fsbn 650256 of 650256-650271 (wd0 bn 839056; cn 888 tn 13 sn 17), retrying

diffstat:

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

diffs (20 lines):

diff -r 30fa5be1bbf3 -r 424aaec2db68 sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Tue Jan 25 09:30:00 2000 +0000
+++ b/sys/dev/ata/ata.c Tue Jan 25 09:33:12 2000 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: ata.c,v 1.11 2000/01/17 00:01:00 bouyer Exp $      */
+/*      $NetBSD: ata.c,v 1.12 2000/01/25 09:33:12 enami Exp $      */
 /*
  * Copyright (c) 1998 Manuel Bouyer.  All rights reserved.
  *
@@ -215,8 +215,8 @@
 
        for (i = 0; i < 8; i++) {
                if (errno & (1 << i)) {
-                       buf += sprintf(buf, "%s %s", sep, errstr[i]);
-                       sep = ",";
+                       buf += sprintf(buf, "%s%s", sep, errstr[i]);
+                       sep = ", ";
                }
        }
 }



Home | Main Index | Thread Index | Old Index