Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ata Make sure the aprint_verbose chain is terminated...



details:   https://anonhg.NetBSD.org/src/rev/e5839723c9b6
branches:  trunk
changeset: 455551:e5839723c9b6
user:      uwe <uwe%NetBSD.org@localhost>
date:      Sat Apr 06 00:35:25 2019 +0000

description:
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:

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

diffs (36 lines):

diff -r 7cb9d4218432 -r e5839723c9b6 sys/dev/ata/ata.c
--- a/sys/dev/ata/ata.c Sat Apr 06 00:13:52 2019 +0000
+++ b/sys/dev/ata/ata.c Sat Apr 06 00:35:25 2019 +0000
@@ -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 @@
 #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_channel_unlock(chp);
 
-       if (printed)
+       if (*sep != '\0')
                aprint_verbose("\n");
 
 #if NATA_UDMA



Home | Main Index | Thread Index | Old Index