diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index 8c2a4b3..429b07f 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -141,8 +141,9 @@ kprintf(file); _file = fl_fopen(file, "r"); + if (!_file) { - kprintf("ERROR[%s:%i]: Open file failed\n", __FILE__, __LINE__); + kprintf("ERROR[%s:%i]: Open file: [%s] failed\n", __FILE__, __LINE__, file); return (0x0); } else {