From 54b308af97b91ceabb0a482f325d3a8595b01aa3 Mon Sep 17 00:00:00 2001 From: turret Date: Mon, 18 Dec 2023 16:13:36 -0600 Subject: *: enforce 78 char line limit --- init/subsys.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'init/subsys.c') diff --git a/init/subsys.c b/init/subsys.c index d080ba6..3db2cb5 100644 --- a/init/subsys.c +++ b/init/subsys.c @@ -41,7 +41,8 @@ static int __subsystem_entry(struct subsystem_info *info) prctl(PR_SET_NAME, name); free(name); - print(LOG_DEBUG "subsys: starting subsystem %s (%d)", info->fn_name, getpid()); + print(LOG_DEBUG "subsys: starting subsystem %s (%d)", + info->fn_name, getpid()); int ret = info->fn(); @@ -81,13 +82,16 @@ int subsystem_handle_term(int pid) if(!subsystem || subsystem->pid != pid) continue; - print(LOG_DEBUG "subsys: subsystem terminated %s (%d)", subsystem->fn_name, pid); + 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); - int pid = clone((int (*)(void *))__subsystem_entry, (void *)((long)(subsystem->stack) + stack_size), CLONE_FILES | CLONE_VM | SIGCHLD, subsystem); + int pid = clone((int (*)(void *))__subsystem_entry, + (void *)((long)(subsystem->stack) + stack_size), + CLONE_FILES | CLONE_VM | SIGCHLD, subsystem); subsystem->pid = pid; if(pid < 0) { print(LOG_CRIT "subsys: cannot re-start subsystem %s: " -- cgit v1.2.3