aboutsummaryrefslogtreecommitdiff
path: root/netnuke.c
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunk@stsci.edu>2009-09-20 22:06:22 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2009-09-20 22:06:22 -0400
commit1e1db02be05149e637381b4006e466f6ed265a37 (patch)
tree44edb7a74bc5409ffcf3ffbaeeb896fc984620b7 /netnuke.c
parent51512bad2ab9e384344f96191834583f110b4a17 (diff)
downloadNetNuke-1e1db02be05149e637381b4006e466f6ed265a37.tar.gz
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.
Diffstat (limited to 'netnuke.c')
-rw-r--r--netnuke.c4
1 files 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;