diff options
author | turret <turret@duck.com> | 2024-01-18 19:24:14 -0600 |
---|---|---|
committer | turret <turret@duck.com> | 2024-01-18 19:24:14 -0600 |
commit | 9a3149aba0214d514b57a53af6d019ae191ecab6 (patch) | |
tree | f8c51f3629e3fe34b4df2f864701a1e21f6c3121 /init | |
parent | f28c6d72b0de0471407860be12ed97ca198a480b (diff) | |
download | discord-bot-skeleton-9a3149aba0214d514b57a53af6d019ae191ecab6.tar.gz discord-bot-skeleton-9a3149aba0214d514b57a53af6d019ae191ecab6.tar.bz2 discord-bot-skeleton-9a3149aba0214d514b57a53af6d019ae191ecab6.zip |
all: remove defunct prints
Diffstat (limited to 'init')
-rw-r--r-- | init/init.c | 4 | ||||
-rw-r--r-- | init/subsys.c | 6 |
2 files changed, 1 insertions, 9 deletions
diff --git a/init/init.c b/init/init.c index 3457769..126442e 100644 --- a/init/init.c +++ b/init/init.c @@ -101,8 +101,6 @@ static void doenv(char *path) *divider = '\0'; setenv(line, divider + 1, 0); - print(LOG_DEBUG "env: setting \"%s\" to \"%s\"", - line, divider + 1); nextline: offset += (eol - line) + 1; @@ -114,7 +112,7 @@ nextline: int main(void) { - print("init: Hello world! Running " NAME " v" VERSION "!"); + /* Hello, World! */ /* set mainpid for the subsystem service so it is fully accessible during l1 */ diff --git a/init/subsys.c b/init/subsys.c index c3fe903..704678f 100644 --- a/init/subsys.c +++ b/init/subsys.c @@ -45,9 +45,6 @@ static int __subsystem_entry(struct subsystem_info *info) static sigset_t set; sigprocmask(SIG_SETMASK, &set, NULL); - print(LOG_DEBUG "subsys: starting subsystem %s (%d)", - info->fn_name, getpid()); - int ret = info->fn(); return ret; @@ -86,9 +83,6 @@ int subsystem_handle_term(int pid) if(!subsystem || subsystem->pid != pid) continue; - print(LOG_DEBUG "subsys: subsystem terminated %s (%d)", - subsystem->fn_name, pid); - if(subsystem->mode == PANICMODE_RESPAWN && subsystem->respawn_count < MAX_RESPAWN) { ++(subsystem->respawn_count); |