aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--init/init.c4
-rw-r--r--init/subsys.c6
-rw-r--r--net/net.c10
3 files changed, 3 insertions, 17 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);
diff --git a/net/net.c b/net/net.c
index b8938c0..ee3b043 100644
--- a/net/net.c
+++ b/net/net.c
@@ -23,8 +23,6 @@ char *gateway_url;
int net_subsystem(void)
{
- print(LOG_INFO "net: starting net subsystem");
-
if(!gateway_url)
panic("net: gateway url invalid");
@@ -34,7 +32,6 @@ int net_subsystem(void)
curl_easy_setopt(ws_handle, CURLOPT_URL, gateway_url);
curl_easy_setopt(ws_handle, CURLOPT_CONNECT_ONLY, 2L);
- print(LOG_INFO "net: opening ws");
CURLcode ret = curl_easy_perform(ws_handle);
if(ret > 0) {
@@ -170,10 +167,10 @@ void net_get_gateway_url()
if(cJSON_IsString(gateway_message)) {
print(LOG_ERR "net: cannot get gateway url from api: "
- "%s", cJSON_GetStringValue(gateway_message));
+ "%s: assuming url", cJSON_GetStringValue(gateway_message));
} else {
print(LOG_ERR "net: cannot get gateway url from api "
- "(unknown error)");
+ "(unknown error): assuming url");
}
cJSON_Delete(gateway_info);
goto assume;
@@ -188,13 +185,10 @@ void net_get_gateway_url()
gateway_url[1] = 'S';
gateway_url[2] = 'S';
- print(LOG_DEBUG "net: using gateway url %s", gateway_url);
-
cJSON_Delete(gateway_info);
return;
assume:
- print(LOG_DEBUG "net: assuming gateway url WSS://gateway.discord.gg");
gateway_url = calloc(strlen("WSS://gateway.discord.gg") + 1,
sizeof(char));
strcpy(gateway_url, "WSS://gateway.discord.gg");