Debug: ensured all exit logs are on the format: retval:%s

This commit is contained in:
Olof hagsand 2024-01-24 10:03:28 +01:00
parent b89d5e2cde
commit 121cd3ed2e
19 changed files with 32 additions and 34 deletions

View file

@ -282,7 +282,7 @@ backend_monitoring_state_get(clixon_handle h,
goto fail;
retval = 1;
done:
clixon_debug(CLIXON_DBG_CLIENT, "%d", retval);
clixon_debug(CLIXON_DBG_CLIENT, "retval:%d", retval);
if (cb)
cbuf_free(cb);
return retval;
@ -1871,7 +1871,7 @@ from_client(int s,
goto done;
retval = 0;
done:
clixon_debug(CLIXON_DBG_CLIENT | CLIXON_DBG_DETAIL, "retval=%d", retval);
clixon_debug(CLIXON_DBG_CLIENT | CLIXON_DBG_DETAIL, "retval:%d", retval);
if (cbce)
cbuf_free(cbce);
if (msg)

View file

@ -1102,7 +1102,7 @@ load_failsafe(clixon_handle h,
}
clixon_log(h, LOG_NOTICE, "%s failed, Failsafe database loaded ", phase);
retval = 0;
done:
done:
if (cbret)
cbuf_free(cbret);
return retval;

View file

@ -369,10 +369,8 @@ schedule_rollback_event(clixon_handle h,
/* error is logged in called function */
goto done;
};
retval = 0;
done:
done:
return retval;
}

View file

@ -373,7 +373,7 @@ get_statedata(clixon_handle h,
} /* switch wdef */
retval = 1; /* OK */
done:
clixon_debug(CLIXON_DBG_CLIENT, "%d", retval);
clixon_debug(CLIXON_DBG_CLIENT, "retval:%d", retval);
if (xerr)
xml_free(xerr);
if (x1)