From: Christian Hopps Date: Thu, 30 Jan 2025 00:54:33 +0000 (+0000) Subject: lib: northbound: also log debugs for new get callback X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=48ceff212855c4e1aec0a702c03bd2ccd65bed10;p=mirror%2Ffrr.git lib: northbound: also log debugs for new get callback Signed-off-by: Christian Hopps --- diff --git a/lib/northbound_oper.c b/lib/northbound_oper.c index c27fe3c019..0aa002fcdf 100644 --- a/lib/northbound_oper.c +++ b/lib/northbound_oper.c @@ -894,9 +894,12 @@ static enum nb_error nb_op_iter_leaf(struct nb_op_yield_state *ys, return nb_op_libyang_cb_get(ys, nb_node, ni->inner, xpath); /* Check for new simple get */ - if (nb_node->cbs.get) + if (nb_node->cbs.get) { /* XXX: need to run through translator */ + DEBUGD(&nb_dbg_cbs_state, "northbound callback (get): xpath [%s] list_entry [%p]", + xpath, ni->list_entry); return nb_node->cbs.get(nb_node, ni->list_entry, ni->inner); + } data = nb_callback_get_elem(nb_node, xpath, ni->list_entry); if (data == NULL) @@ -932,9 +935,12 @@ static enum nb_error nb_op_iter_leaflist(struct nb_op_yield_state *ys, return NB_OK; /* Check for new simple get */ - if (nb_node->cbs.get) + if (nb_node->cbs.get) { /* XXX: need to run through translator */ + DEBUGD(&nb_dbg_cbs_state, "northbound callback (get): xpath [%s] list_entry [%p]", + xpath, ni->list_entry); return nb_node->cbs.get(nb_node, ni->list_entry, ni->inner); + } if (CHECK_FLAG(nb_node->flags, F_NB_NODE_HAS_GET_TREE)) /* XXX: need to run through translator */