Changeset a397f1d in mainline
- Timestamp:
- 2010-04-06T11:31:26Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- c51fa73
- Parents:
- 0a72efc
- Location:
- uspace/app/bdsh
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/exec.c
r0a72efc ra397f1d 40 40 #include <str.h> 41 41 #include <fcntl.h> 42 #include <strerror.h> 42 43 43 44 #include "config.h" … … 124 125 125 126 if (tid == 0) { 126 cli_error(CL_EEXEC, " Cannot spawn `%s'.", cmd);127 cli_error(CL_EEXEC, "%s: Cannot spawn `%s'", progname, cmd); 127 128 return 1; 128 129 } … … 130 131 task_wait(tid, &texit, &retval); 131 132 if (texit != TASK_EXIT_NORMAL) { 132 printf(" Command failed (unexpectedly terminated).\n");133 printf("%s: Command failed (unexpectedly terminated)\n", progname); 133 134 } else if (retval != 0) { 134 printf("Command failed (return value %d).\n", retval); 135 printf("%s: Command failed (%s)\n", 136 progname, str_error(retval)); 135 137 } 136 138 -
uspace/app/bdsh/scli.h
r0a72efc ra397f1d 13 13 } cliuser_t; 14 14 15 extern const char *progname; 16 15 17 #endif
Note:
See TracChangeset
for help on using the changeset viewer.