Changeset f50a756 in mainline
- Timestamp:
- 2012-08-16T22:21:35Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9ba10f0
- Parents:
- 2bf781a
- Location:
- uspace
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/logset/main.c
r2bf781a rf50a756 71 71 } else if (argc == 3) { 72 72 log_level_t new_level = parse_log_level_or_die(argv[2]); 73 const char * namespace= argv[1];74 int rc = logctl_set_ namespace_level(namespace, new_level);73 const char *toplog = argv[1]; 74 int rc = logctl_set_top_log_level(toplog, new_level); 75 75 76 76 if (rc != EOK) { … … 81 81 } else if (argc == 4) { 82 82 log_level_t new_level = parse_log_level_or_die(argv[3]); 83 const char * namespace= argv[1];84 const char * context= argv[2];85 int rc = logctl_set_ context_level(namespace, context, new_level);83 const char *toplog = argv[1]; 84 const char *log = argv[2]; 85 int rc = logctl_set_log_level(toplog, log, new_level); 86 86 if (rc != EOK) { 87 87 fprintf(stderr, "Failed to change logging level: %s.\n", -
uspace/lib/c/generic/io/logctl.c
r2bf781a rf50a756 83 83 } 84 84 85 int logctl_set_ namespace_level(const char *namespace, log_level_t new_level)85 int logctl_set_top_log_level(const char *namespace, log_level_t new_level) 86 86 { 87 87 async_exch_t *exchange = NULL; … … 105 105 } 106 106 107 int logctl_set_ context_level(const char *namespace, const char *context, log_level_t new_level)107 int logctl_set_log_level(const char *namespace, const char *context, log_level_t new_level) 108 108 { 109 109 async_exch_t *exchange = NULL; -
uspace/lib/c/include/io/logctl.h
r2bf781a rf50a756 37 37 38 38 extern int logctl_set_default_level(log_level_t); 39 extern int logctl_set_ namespace_level(const char *, log_level_t);40 extern int logctl_set_ context_level(const char *, const char *, log_level_t);39 extern int logctl_set_top_log_level(const char *, log_level_t); 40 extern int logctl_set_log_level(const char *, const char *, log_level_t); 41 41 extern int logctl_get_boot_level(log_level_t *); 42 42
Note:
See TracChangeset
for help on using the changeset viewer.