From e046538add21027b295fa4c3c60af3b5c46cfba5 Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Tue, 22 Nov 2005 23:11:42 +0000 Subject: [PATCH] Add some error strings --- libstream/stream_open.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/libstream/stream_open.c b/libstream/stream_open.c index fe20e8e..0256c06 100644 --- a/libstream/stream_open.c +++ b/libstream/stream_open.c @@ -4,6 +4,7 @@ * */ +#include #include #include @@ -104,10 +105,16 @@ stream_t *stream_open(char *dev) current = get_fs(dev, &fs); if (current == NULL) + { + printf("Cannot identify given filesystem\n"); return NULL; + } current = get_device(current, &device, &unit, &partition); if (current == NULL) + { + printf("Cannot identify given device\n"); return NULL; + } stream = (stream_t*)malloc(sizeof(stream_t)); @@ -169,7 +176,10 @@ stream_t *stream_open(char *dev) case fs_ISO9660: stream->fs.volume = iso9660_mount(&stream->device); if (stream->fs.volume == NULL) + { + printf("Cannot mount volume ISO9660\n"); goto outfs; + } stream->fs.file = iso9660_open(stream->fs.volume, current); if (stream->fs.file == NULL) {