]> git.puffer.fish Git - matthieu/frr.git/commitdiff
mgmtd: change error message
authorIgor Ryzhov <iryzhov@nfware.com>
Wed, 6 Mar 2024 21:57:30 +0000 (23:57 +0200)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Thu, 7 Mar 2024 07:26:36 +0000 (07:26 +0000)
Make the wording clearer about what's going on.

Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
(cherry picked from commit bbaf34b117a69a22aeef2c3730756766f34a6d37)

mgmtd/mgmt_txn.c

index 664f42f4bad5bb2aa49c18efa77a22e3a0d483cc..c1cb33f6f3a47717cbce1f984ad9f1917a62cf5a 100644 (file)
@@ -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;