From 1e1db02be05149e637381b4006e466f6ed265a37 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Mon, 21 Sep 2009 02:06:22 +0000 Subject: Eventually I would like each mediaList iteration perform a user defined scan of 1 to XXXX. Right now, SATA detection isues this method, but the rest of the subsystems should as well. --- netnuke.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/netnuke.c b/netnuke.c index 1a22711..41152f6 100644 --- a/netnuke.c +++ b/netnuke.c @@ -258,7 +258,7 @@ int nuke(media_t device) bytesWritten = write(fd, wTable, byteSize); if(bytesWritten != byteSize) - fprintf(stderr, "\nwrite() function is not returning the correct size.\n"); + fprintf(stderr, "%s: %s, while writing chunk %jd\n", device.nameshort, strerror(errno), block); } /* BLOCK WRITE */ @@ -298,7 +298,7 @@ void buildMediaList(media_t devices[]) #ifdef __FreeBSD__ /* Account for SATA devices. mediaList will always have IDE/SATA as position 0 */ - if(device.usable != USABLE_MEDIA && mt == 0 && i < 4) + if(device.usable != USABLE_MEDIA && mt == 0 && i < 255) { i++; continue; -- cgit