improve: status description spacing

This commit improves the spacing of the module status description.
This commit is contained in:
ThePedroo
2024-10-24 16:49:23 -03:00
parent e0d0bd0d76
commit 380ef011a1

View File

@@ -675,14 +675,14 @@ static char post_section[1024];
#define WRITE_STATUS_ABI(suffix) \ #define WRITE_STATUS_ABI(suffix) \
if (status ## suffix.supported) { \ if (status ## suffix.supported) { \
strcat(status_text, " zygote" # suffix ":"); \ strcat(status_text, " zygote" # suffix ": "); \
if (tracing_state != TRACING) strcat(status_text, "❓ unknown, "); \ if (tracing_state != TRACING) strcat(status_text, "❓ unknown, "); \
else if (status ## suffix.zygote_injected) strcat(status_text, "😋 injected, "); \ else if (status ## suffix.zygote_injected) strcat(status_text, "😋 injected, "); \
else strcat(status_text, "❌ not injected, "); \ else strcat(status_text, "❌ not injected, "); \
\ \
strcat(status_text, " daemon" # suffix ":"); \ strcat(status_text, " daemon" # suffix ": "); \
if (status ## suffix.daemon_running) { \ if (status ## suffix.daemon_running) { \
strcat(status_text, "😋running"); \ strcat(status_text, "😋 running "); \
\ \
if (status ## suffix.daemon_info != NULL) { \ if (status ## suffix.daemon_info != NULL) { \
strcat(status_text, "("); \ strcat(status_text, "("); \
@@ -706,18 +706,18 @@ static void updateStatus() {
switch (tracing_state) { switch (tracing_state) {
case TRACING: { case TRACING: {
strcat(status_text, "😋 tracing"); strcat(status_text, "😋 tracing ");
break; break;
} }
case STOPPING: [[fallthrough]]; case STOPPING: [[fallthrough]];
case STOPPED: { case STOPPED: {
strcat(status_text, "❌ stopped"); strcat(status_text, "❌ stopped ");
break; break;
} }
case EXITING: { case EXITING: {
strcat(status_text, "❌ exited"); strcat(status_text, "❌ exited ");
break; break;
} }