Changeset 655 for soft/giet_vm
- Timestamp:
- Jul 22, 2015, 2:31:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/applications/shell/main.c
r654 r655 99 99 if (info.is_dir) 100 100 { 101 giet_tty_printf("can't copy a directory\n" , argv[1]);101 giet_tty_printf("can't copy a directory\n"); 102 102 goto exit; 103 103 } … … 114 114 if (info.is_dir) 115 115 { 116 giet_tty_printf("can't copy to a directory\n" , argv[2]); // TODO116 giet_tty_printf("can't copy to a directory\n"); // TODO 117 117 goto exit; 118 118 } … … 123 123 int len = (size - i < 1024 ? size - i : 1024); 124 124 int wlen; 125 126 giet_tty_printf("\rwrite %d/%d (%d%%)", i, size, 100*i/size); 125 127 126 128 len = giet_fat_read(src_fd, &buf, len); … … 128 130 if (wlen != len) 129 131 { 130 giet_tty_printf(" write error\n");132 giet_tty_printf("\nwrite error\n"); 131 133 goto exit; 132 134 } 133 135 i += len; 134 giet_tty_printf("wrote %d/%d (%d%%)\n", i, size, 100*i/size);135 }136 } 137 giet_tty_printf("\n"); 136 138 137 139 exit:
Note: See TracChangeset
for help on using the changeset viewer.