diff --git a/sys/fs/fat/fat.c b/sys/fs/fat/fat.c index 18b6ef0..d77733e 100644 --- a/sys/fs/fat/fat.c +++ b/sys/fs/fat/fat.c @@ -136,7 +136,7 @@ _file = fl_fopen(file, "r"); if (!_file) { - kprintf("ERROR: Open file failed\n"); + kprintf("ERROR[%s:%i]: Open file failed\n", __FILE__, __LINE__); return(0x0); } else { diff --git a/sys/fs/fat/fat_filelib.c b/sys/fs/fat/fat_filelib.c index 354a352..708b9a0 100644 --- a/sys/fs/fat/fat_filelib.c +++ b/sys/fs/fat/fat_filelib.c @@ -778,8 +778,11 @@ FL_LOCK(&_fs); // Read - if (flags & FILE_READ) - file = _open_file(path); + if (flags & FILE_READ) { + kprintf("READ"); + file = _open_file(path); + } + // Create New #if FATFS_INC_WRITE_SUPPORT