diff options
author | Dimitri Staessens <dimitri@ouroboros.rocks> | 2023-09-12 17:26:35 +0200 |
---|---|---|
committer | Sander Vrijders <sander@ouroboros.rocks> | 2023-09-20 18:51:19 +0200 |
commit | a032b25832a75deef7d6d8b48a0786e5838df419 (patch) | |
tree | 5de18c0d24cb54d84b48af99118f50e312f2177b /src/irmd/main.c | |
parent | de2b10441c7835d4221dea3b4414478f72c549f6 (diff) | |
download | ouroboros-a032b25832a75deef7d6d8b48a0786e5838df419.tar.gz ouroboros-a032b25832a75deef7d6d8b48a0786e5838df419.zip |
irmd: Print ascii Ouroboros logo at startup
The IRMd will now print a stylized logo at startup:
▄▄█████▄▄▄
▄█▀▀ ▀▀███▄ █
██ ▄▄▄ ▄███▄ ▄ ▄ ▄ ▄▄ ▄▄ █ ▄▄ ▄▄ ▄ ▄▄ ▄▄ ▄▄
██ █ █ █████ █ █ █▀ ▀ █ █ █▀ █ █ █ █▀ ▀ █ █ ▀▄ ▀
██ ▀▄▄▄▀ ▀█▀ █ █ █ █ █ █▄ █ █ █ █ █ █ ▄ ▀▄
█▄ █ ▀▀▀ ▀ ▀ ▀▀ ▀ ▀▀ ▀▀ ▀ ▀▀ ▀▀
▀█▄▄▄▄▄▄▄▄▀
▀▀▀▀▀▀
All credits to Zen for providing the ASCII art!
Signed-off-by: Dimitri Staessens <dimitri@ouroboros.rocks>
Signed-off-by: Sander Vrijders <sander@ouroboros.rocks>
Diffstat (limited to 'src/irmd/main.c')
-rw-r--r-- | src/irmd/main.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/irmd/main.c b/src/irmd/main.c index b5184ade..6073db46 100644 --- a/src/irmd/main.c +++ b/src/irmd/main.c @@ -1599,7 +1599,7 @@ static int flow_alloc(pid_t pid, IPCP_HASH_LEN(ipcp), qs, *data)) { reg_flow_set_state(f, FLOW_NULL); /* sanitizer cleans this */ - log_info("Flow_allocation failed."); + log_warn("Flow_allocation %d failed.", flow_id); free(hash); return -EAGAIN; } @@ -1820,6 +1820,7 @@ static int flow_req_arr(pid_t pid, flow_id = bmp_allocate(irmd.flow_ids); if (!bmp_is_id_valid(irmd.flow_ids, flow_id)) { + log_err("Out of flow ids."); pthread_rwlock_unlock(&irmd.flows_lock); return -1; } @@ -2756,6 +2757,9 @@ int main(int argc, irm_argparse(argc, argv); + if (irmd.log_stdout) + printf(O7S_ASCII_ART); + if (geteuid() != 0) { printf("IPC Resource Manager must be run as root.\n"); exit(EXIT_FAILURE); |