aboutsummaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorturret <turret@duck.com>2024-01-18 19:24:14 -0600
committerturret <turret@duck.com>2024-01-18 19:24:14 -0600
commit9a3149aba0214d514b57a53af6d019ae191ecab6 (patch)
treef8c51f3629e3fe34b4df2f864701a1e21f6c3121 /init
parentf28c6d72b0de0471407860be12ed97ca198a480b (diff)
downloaddiscord-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.c4
-rw-r--r--init/subsys.c6
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);