From 8caf17cdc4585ad2dd1efaa7ff6dc6de8764d644 Mon Sep 17 00:00:00 2001 From: Igor Ryzhov Date: Wed, 6 Mar 2024 23:57:30 +0200 Subject: [PATCH] mgmtd: change error message Make the wording clearer about what's going on. Signed-off-by: Igor Ryzhov (cherry picked from commit bbaf34b117a69a22aeef2c3730756766f34a6d37) --- mgmtd/mgmt_txn.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/mgmtd/mgmt_txn.c b/mgmtd/mgmt_txn.c index 664f42f4bad5..c1cb33f6f3a4 100644 --- a/mgmtd/mgmt_txn.c +++ b/mgmtd/mgmt_txn.c @@ -824,7 +824,6 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req, struct nb_config_change *chg; struct mgmt_txn_be_cfg_batch *batch; char *xpath = NULL, *value = NULL; - char err_buf[1024]; enum mgmt_be_client_id id; struct mgmt_be_client_adapter *adapter; struct mgmt_commit_cfg_req *cmtcfg_req; @@ -919,12 +918,9 @@ static int mgmt_txn_create_config_batches(struct mgmt_txn_req *txn_req, num_chgs++; } - if (!chg_clients) { - snprintf(err_buf, sizeof(err_buf), - "No validator module found for XPATH: '%s", - xpath); - __log_err("***** %s", err_buf); - } + if (!chg_clients) + __log_err("No connected daemon is interested in XPATH %s", + xpath); cmtcfg_req->clients |= chg_clients;