Changeset 7e752b2 in mainline for uspace/app/bdsh
- Timestamp:
- 2010-11-26T01:33:20Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- bf61d3a
- Parents:
- 202f57b
- Location:
- uspace/app/bdsh
- Files:
-
- 5 edited
-
cmds/modules/bdd/bdd.c (modified) (2 diffs)
-
cmds/modules/cp/cp.c (modified) (4 diffs)
-
cmds/modules/mkfile/mkfile.c (modified) (2 diffs)
-
cmds/modules/unmount/unmount.c (modified) (2 diffs)
-
exec.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/bdd/bdd.c
r202f57b r7e752b2 30 30 #include <stdlib.h> 31 31 #include <str.h> 32 #include <sys/typefmt.h> 32 33 #include "config.h" 33 34 #include "util.h" … … 122 123 rc = block_read_direct(handle, ba, 1, blk); 123 124 if (rc != EOK) { 124 printf("%s: Error reading block % llu\n", cmdname, ba);125 printf("%s: Error reading block %" PRIuOFF64 "\n", cmdname, ba); 125 126 free(blk); 126 127 block_fini(handle); -
uspace/app/bdsh/cmds/modules/cp/cp.c
r202f57b r7e752b2 95 95 96 96 if (vb) 97 printf("% dbytes to copy\n", total);97 printf("%" PRIu64 " bytes to copy\n", total); 98 98 99 99 lseek(fd1, 0, SEEK_SET); … … 130 130 */ 131 131 if (res != 0) { 132 printf("\n% d more bytes than actually exist were copied\n", res);132 printf("\n%zd more bytes than actually exist were copied\n", res); 133 133 goto err; 134 134 } … … 187 187 return CMD_SUCCESS; 188 188 case 'v': 189 printf("% d\n", CP_VERSION);189 printf("%s\n", CP_VERSION); 190 190 return CMD_SUCCESS; 191 191 case 'V': … … 223 223 224 224 if (verbose) 225 printf("% dbytes copied\n", ret);225 printf("%" PRId64 " bytes copied\n", ret); 226 226 227 227 if (ret >= 0) -
uspace/app/bdsh/cmds/modules/mkfile/mkfile.c
r202f57b r7e752b2 168 168 rc = write(fd, buffer, to_write); 169 169 if (rc <= 0) { 170 printf("%s: Error writing file (% d).\n", cmdname, rc);170 printf("%s: Error writing file (%zd).\n", cmdname, rc); 171 171 close(fd); 172 172 return CMD_FAILURE; … … 177 177 rc = close(fd); 178 178 if (rc != 0) { 179 printf("%s: Error writing file (% d).\n", cmdname, rc);179 printf("%s: Error writing file (%zd).\n", cmdname, rc); 180 180 return CMD_FAILURE; 181 181 } -
uspace/app/bdsh/cmds/modules/unmount/unmount.c
r202f57b r7e752b2 47 47 } else { 48 48 help_cmd_unmount(HELP_SHORT); 49 printf("Usage: %s <mp>\n", cmdname);49 printf("Usage: %s <mp>\n", cmdname); 50 50 } 51 51 return; … … 68 68 rc = unmount(argv[1]); 69 69 if (rc != EOK) { 70 printf("Unable to unmount %s (rc=%d)\n", argv[1] );70 printf("Unable to unmount %s (rc=%d)\n", argv[1], rc); 71 71 return CMD_FAILURE; 72 72 } -
uspace/app/bdsh/exec.c
r202f57b r7e752b2 133 133 rc = task_wait(tid, &texit, &retval); 134 134 if (rc != EOK) { 135 printf("%s: Failed waiting for command (%s)\n", str_error(rc)); 135 printf("%s: Failed waiting for command (%s)\n", progname, 136 str_error(rc)); 136 137 } else if (texit != TASK_EXIT_NORMAL) { 137 138 printf("%s: Command failed (unexpectedly terminated)\n", progname);
Note:
See TracChangeset
for help on using the changeset viewer.
