aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;