diff options
| author | uwe <uwe@NetBSD.org> | 2019-04-06 00:35:25 +0000 |
|---|---|---|
| committer | uwe <uwe@NetBSD.org> | 2019-04-06 00:35:25 +0000 |
| commit | 59f13e4e760f49ea1f0bfe5991e798fe1aee36eb (patch) | |
| tree | 9ab81ad8248c7778f43e3e17b1532ed8d0327b17 /sys/dev/ata | |
| parent | da611c317ed6588e7d590897775f54a40f7f1ba9 (diff) | |
Make sure the aprint_verbose chain is terminated with a newline.
Check sep instead of printed, b/c the latter is reset several times.
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/ata.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/ata/ata.c b/sys/dev/ata/ata.c index f62d1b7a1a3..b049f540de0 100644 --- a/sys/dev/ata/ata.c +++ b/sys/dev/ata/ata.c @@ -1,4 +1,4 @@ -/* $NetBSD: ata.c,v 1.147 2018/12/11 23:06:30 jdolecek Exp $ */ +/* $NetBSD: ata.c,v 1.148 2019/04/06 00:35:25 uwe Exp $ */ /* * Copyright (c) 1998, 2001 Manuel Bouyer. All rights reserved. @@ -25,7 +25,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.147 2018/12/11 23:06:30 jdolecek Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ata.c,v 1.148 2019/04/06 00:35:25 uwe Exp $"); #include "opt_ata.h" @@ -2040,6 +2040,8 @@ ata_probe_caps(struct ata_drive_datas *drvp) #if NATA_DMA if ((atac->atac_cap & ATAC_CAP_DMA) == 0) { /* don't care about DMA modes */ + if (*sep != '\0') + aprint_verbose("\n"); return; } if (cf_flags & ATA_CONFIG_DMA_SET) { @@ -2086,7 +2088,7 @@ ata_probe_caps(struct ata_drive_datas *drvp) } ata_channel_unlock(chp); - if (printed) + if (*sep != '\0') aprint_verbose("\n"); #if NATA_UDMA |
