Changeset 7c3fb9b in mainline for uspace/app/bdsh/errors.c
- Timestamp:
- 2018-05-17T08:29:01Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 6ff23ff
- Parents:
- fac0ac7
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-16 17:28:17)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-17 08:29:01)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/bdsh/errors.c
rfac0ac7 r7c3fb9b 44 44 45 45 46 /* Look up errno in cl_errors and return the corresponding string. 47 * Return NULL if not found */ 46 /** Look up errno in cl_errors and return the corresponding string. 47 * 48 * Return NULL if not found 49 */ 48 50 static const char *err2str(int err) 49 51 { … … 55 57 } 56 58 57 /* Print an error report signifying errno, which is translated to 58 * its corresponding human readable string. If errno > 0, raise the 59 * cli_quit int that tells the main program loop to exit immediately */ 60 59 /** Print an error report signifying errno 60 * 61 * errno is translated to its corresponding human readable string. 62 * If errno > 0, raise the cli_quit int that tells the main program loop 63 * to exit immediately 64 */ 61 65 void cli_error(int err, const char *fmt, ...) 62 66 { … … 71 75 printf(" (Unknown Error %d)\n", err); 72 76 73 /* If fatal, raise cli_quit so that we try to exit 77 /* 78 * If fatal, raise cli_quit so that we try to exit 74 79 * gracefully. This will break the main loop and 75 * invoke the destructor */ 80 * invoke the destructor 81 */ 76 82 if (err == CL_EFATAL) 77 83 cli_quit = 1;
Note:
See TracChangeset
for help on using the changeset viewer.