diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-25 10:33:53 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-25 10:33:53 +0000 |
commit | a659a8ffe478e1be24c1b6bd2f1682854e10563d (patch) | |
tree | faf6a8763d4745c76917e71b8d9b8fcb48cc3940 | |
parent | d86215db870c08230fc11eb10b0e769ebe079822 (diff) |
kill extra space in output with diskerr(); ok jsg
-rw-r--r-- | sys/dev/ata/ata.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ata/ata.c b/sys/dev/ata/ata.c index a50ce2ef214..8c6c8d93acd 100644 --- a/sys/dev/ata/ata.c +++ b/sys/dev/ata/ata.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ata.c,v 1.26 2006/12/21 02:44:55 krw Exp $ */ +/* $OpenBSD: ata.c,v 1.27 2007/03/25 10:33:52 deraadt Exp $ */ /* $NetBSD: ata.c,v 1.9 1999/04/15 09:41:09 bouyer Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -231,10 +231,10 @@ ata_perror(struct ata_drive_datas *drvp, int errno, char *buf, size_t buf_len) for (i = 0; i < 8; i++) { if (errno & (1 << i)) { - snprintf(buf + len, buf_len - len, "%s %s", sep, + snprintf(buf + len, buf_len - len, "%s%s", sep, errstr[i]); len = strlen(buf); - sep = ","; + sep = ", "; } } } |