Changeset 9ba10f0 in mainline
- Timestamp:
- 2012-08-16T22:43:22Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 330a59f
- Parents:
- f50a756
- Location:
- uspace/srv/logger
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/logger/Makefile
rf50a756 r9ba10f0 33 33 SOURCES = \ 34 34 ctl.c \ 35 initlvl.c \ 35 36 level.c \ 36 37 logs.c \ -
uspace/srv/logger/logger.h
rf50a756 r9ba10f0 76 76 void logger_connection_handler_writer(ipc_callid_t); 77 77 78 void parse_initial_settings(void); 79 void parse_level_settings(char *); 80 78 81 #endif 79 82 -
uspace/srv/logger/main.c
rf50a756 r9ba10f0 69 69 printf(NAME ": HelenOS Logging Service\n"); 70 70 71 /* Get default logging level from sysinfo (if available). */ 72 log_level_t boot_logging_level = LVL_NOTE; 73 int rc = logctl_get_boot_level(&boot_logging_level); 74 if (rc == EOK) 75 set_default_logging_level(boot_logging_level); 76 else 77 printf(NAME ": Warn: failed to get logging level from sysinfo: %s.\n", 78 str_error(rc)); 71 parse_initial_settings(); 72 for (int i = 1; i < argc; i++) { 73 parse_level_settings(argv[i]); 74 } 79 75 80 76 async_set_client_connection(connection_handler); 81 77 82 rc = service_register(SERVICE_LOGGER);78 int rc = service_register(SERVICE_LOGGER); 83 79 if (rc != EOK) { 84 80 printf(NAME ": failed to register: %s.\n", str_error(rc));
Note:
See TracChangeset
for help on using the changeset viewer.