From 87c181db8be971eeb2c06af3e7ff00380f45685e Mon Sep 17 00:00:00 2001 From: David Teigland Date: Feb 08 2022 16:38:07 +0000 Subject: dlm_controld: fix printf args in log messages Fix log message arg types in two recent commits: dcc945a9d40b90a7b13d7f826f2726f35921f95b "dlm_controld: use uint64_t for cluster ringid" b0222892f0b82ff680d4b3f9ac4250f47300d897 "dlm_controld: add support for per nodeid configuration" --- diff --git a/dlm_controld/cpg.c b/dlm_controld/cpg.c index f3365ee..b9f9a16 100644 --- a/dlm_controld/cpg.c +++ b/dlm_controld/cpg.c @@ -450,7 +450,7 @@ static int check_ringid_done(struct lockspace *ls) but that's probably not guaranteed.) */ if (ls->cpg_ringid_wait) { - log_group(ls, "check_ringid wait cluster %u cpg %llu:%llu", + log_group(ls, "check_ringid wait cluster %llu cpg %u:%llu", (unsigned long long)cluster_ringid_seq, ls->cpg_ringid.nodeid, (unsigned long long)ls->cpg_ringid.seq); diff --git a/dlm_controld/node_config.c b/dlm_controld/node_config.c index fe794be..9845e89 100644 --- a/dlm_controld/node_config.c +++ b/dlm_controld/node_config.c @@ -58,8 +58,8 @@ int node_config_init(const char *path) } nc[nodeid].mark = mark; - log_debug("parsed node config id=%d mark=%" PRIu32, - nodeid, mark); + log_debug("parsed node config id=%d mark=%llu", + nodeid, (unsigned long long)mark); } }