diff --git a/source/shell/mufs.c b/source/shell/mufs.c index 87a94ff..aa87ebd 100644 --- a/source/shell/mufs.c +++ b/source/shell/mufs.c @@ -145,12 +145,12 @@ int shell_stat(struct console *con, size_t argc, const char **argv) } switch (stat.type) { - case MUFS_DIR: printf(" type: directory\n"); break; - case MUFS_FILE: printf(" type: file\n"); break; + case MUFS_DIR: fprintf(con->fp, " type: directory\n"); break; + case MUFS_FILE: fprintf(con->fp, " type: file\n"); break; default: return -1; } - printf(" file size: %" PRIu32 " bytes\n", stat.file_size); + fprintf(con->fp, " file size: %" PRIu32 " bytes\n", stat.file_size); return 0; }