fix(xmpp): clang-tidy warnings for extended debug info
Some checks failed
CI Code / Check spelling (pull_request) Successful in 23s
CI Code / Linux (ubuntu) (pull_request) Has been cancelled
CI Code / Check coding style (pull_request) Has been cancelled
CI Code / Linux (debian) (pull_request) Has been cancelled
CI Code / Linux (arch) (pull_request) Has been cancelled
Some checks failed
CI Code / Check spelling (pull_request) Successful in 23s
CI Code / Linux (ubuntu) (pull_request) Has been cancelled
CI Code / Check coding style (pull_request) Has been cancelled
CI Code / Linux (debian) (pull_request) Has been cancelled
CI Code / Linux (arch) (pull_request) Has been cancelled
This commit is contained in:
@@ -178,7 +178,8 @@ _iq_get_debug_stats(time_t* now_out, char* elapsed_connect, size_t len)
|
||||
{
|
||||
time_t now = time(NULL);
|
||||
time_t last_success = connection_last_successful_connect_ts();
|
||||
if (now_out) *now_out = now;
|
||||
if (now_out)
|
||||
*now_out = now;
|
||||
_connection_format_elapsed_time(last_success, now, elapsed_connect, len);
|
||||
}
|
||||
|
||||
@@ -401,7 +402,7 @@ iq_autoping_timer_cancel(void)
|
||||
gdouble elapsed = autoping_time ? g_timer_elapsed(autoping_time, NULL) : 0.0;
|
||||
auto_gchar gchar* extra = g_strdup_printf("was_waiting=%d elapsed=%.3fs", autoping_wait, elapsed);
|
||||
_iq_log_autoping_debug("AUTOPING_TIMER_CANCEL", extra);
|
||||
|
||||
|
||||
autoping_wait = FALSE;
|
||||
if (autoping_time) {
|
||||
g_timer_destroy(autoping_time);
|
||||
@@ -1494,7 +1495,7 @@ _autoping_timed_send(xmpp_conn_t* const conn, void* const userdata)
|
||||
xmpp_stanza_t* iq = stanza_create_ping_iq(ctx, NULL);
|
||||
const char* id = xmpp_stanza_get_id(iq);
|
||||
log_debug("Autoping: Sending ping request: %s", id);
|
||||
|
||||
|
||||
auto_gchar gchar* send_extra = g_strdup_printf("id=%s timeout=%ds", id, autoping_timeout);
|
||||
_iq_log_autoping_debug("AUTOPING_SEND", send_extra);
|
||||
|
||||
@@ -1530,7 +1531,7 @@ _auto_pong_id_handler(xmpp_stanza_t* const stanza, void* const userdata)
|
||||
|
||||
const char* id = xmpp_stanza_get_id(stanza);
|
||||
gdouble response_time = autoping_time ? g_timer_elapsed(autoping_time, NULL) : 0.0;
|
||||
|
||||
|
||||
if (id == NULL) {
|
||||
log_debug("Autoping: Pong handler fired.");
|
||||
auto_gchar gchar* extra = g_strdup_printf("id=(null) response_time=%.3fs", response_time);
|
||||
|
||||
Reference in New Issue
Block a user