shell: mufs: use fprintf in shell_stat()

tags/0.1.0
S.J.R. van Schaik 7 years ago
parent 9a2888341d
commit 635df8e06f
  1. 6
      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;
}

Loading…
Cancel
Save