Subject: kern/21236: Missing blank in pciide.c
To: None <gnats-bugs@gnats.netbsd.org>
From: None <simon@hitzemann.org>
List: netbsd-bugs
Date: 04/19/2003 21:12:39
>Number: 21236
>Category: kern
>Synopsis: There is a missing blank in pciide.c
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: kern-bug-people
>State: open
>Class: change-request
>Submitter-Id: net
>Arrival-Date: Sat Apr 19 21:13:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Simon Hitzemann
>Release: NetBSD 1.6R
>Organization:
>Environment:
System: NetBSD mommel.csn.tu-chemnitz.de 1.6R NetBSD 1.6R (ROHAN) #34: Fri Apr 18 18:36:01 UTC 2003 root@mommel.csn.tu-chemnitz.de:/usr/src/sys/arch/i386/compile/ROHAN i386
Architecture: i386
Machine: i386
>Description:
In src/sys/dev/pci/pciide.c are two printf command for the "unable to load xfer DMA map" error with a missing blank at the end. The error shows up like:
pciide0:0: unable to load xfer DMA map fordrive 1, error=22
but should be:
pciide0:0: unable to load xfer DMA map for drive 1, error=22
>How-To-Repeat:
Try to get the unable to load xfer DMA map error for a wd* device connected via pciide
>Fix:
--- src/sys/dev/pci/pciide.c.orig 2003-04-06 23:18:40.000000000 +0000
+++ src/sys/dev/pci/pciide.c
@@ -1117,7 +1117,7 @@ pciide_dma_table_setup(sc, channel, driv
dma_table_size,
(caddr_t *)&dma_maps->dma_table,
BUS_DMA_NOWAIT|BUS_DMA_COHERENT)) != 0) {
- printf("%s:%d: unable to map table DMA for"
+ printf("%s:%d: unable to map table DMA for "
"drive %d, error=%d\n", sc->sc_wdcdev.sc_dev.dv_xname,
channel, drive, error);
return error;
@@ -1178,7 +1178,7 @@ pciide_dma_init(v, channel, drive, datab
databuf, datalen, NULL, BUS_DMA_NOWAIT | BUS_DMA_STREAMING |
((flags & WDC_DMA_READ) ? BUS_DMA_READ : BUS_DMA_WRITE));
if (error) {
- printf("%s:%d: unable to load xfer DMA map for"
+ printf("%s:%d: unable to load xfer DMA map for "
"drive %d, error=%d\n", sc->sc_wdcdev.sc_dev.dv_xname,
channel, drive, error);
return error;
>Release-Note:
>Audit-Trail:
>Unformatted: