Changeset dd8ab1c in mainline for uspace/app/bdsh/cmds
- Timestamp:
- 2017-12-10T21:08:11Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 68e5406
- Parents:
- 1afa94d
- Location:
- uspace/app/bdsh/cmds/modules
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/cmds/modules/cp/cp.c
r1afa94d rdd8ab1c 28 28 29 29 #include <errno.h> 30 #include <str_error.h> 30 31 #include <stdio.h> 31 32 #include <stdlib.h> … … 432 433 433 434 if (rc != EOK) { 434 printf("\nError copying %s , (%d)\n", src, rc);435 printf("\nError copying %s: %s\n", src, str_error(rc)); 435 436 return rc; 436 437 } -
uspace/app/bdsh/cmds/modules/ls/ls.c
r1afa94d rdd8ab1c 32 32 33 33 #include <errno.h> 34 #include <str_error.h> 34 35 #include <stdio.h> 35 36 #include <stdlib.h> … … 184 185 if (rc != EOK) { 185 186 printf("ls: skipping bogus node %s\n", buff); 186 printf("error=% d\n", rc);187 printf("error=%s\n", str_error_name(rc)); 187 188 goto out; 188 189 } -
uspace/app/bdsh/cmds/modules/mv/mv.c
r1afa94d rdd8ab1c 30 30 #include <stdlib.h> 31 31 #include <errno.h> 32 #include <str_error.h> 32 33 #include <vfs/vfs.h> 33 34 #include "config.h" … … 62 63 rc = vfs_rename_path(argv[1], argv[2]); 63 64 if (rc != EOK) { 64 printf("Unable to rename %s to %s (error=%d)\n",65 argv[1], argv[2], rc);65 printf("Unable to rename %s to %s: %s)\n", 66 argv[1], argv[2], str_error(rc)); 66 67 return CMD_FAILURE; 67 68 } -
uspace/app/bdsh/cmds/modules/unmount/unmount.c
r1afa94d rdd8ab1c 31 31 #include <vfs/vfs.h> 32 32 #include <errno.h> 33 #include <str_error.h> 33 34 #include "config.h" 34 35 #include "util.h" … … 68 69 rc = vfs_unmount_path(argv[1]); 69 70 if (rc != EOK) { 70 printf("Unable to unmount %s (rc=%d)\n", argv[1], rc);71 printf("Unable to unmount %s: %s\n", argv[1], str_error(rc)); 71 72 return CMD_FAILURE; 72 73 }
Note:
See TracChangeset
for help on using the changeset viewer.