Write someting on console on a callpoint action

hello, i’m looking to write something on the console on a callpoint action.
I got this error
DEBUG item does not exist - no cli session

my function

static int  func_set_elem(struct confd_trans_ctx *tctx, confd_hkeypath_t * keypath, confd_value_t * newval)
confd_trans_get(tctx, keypath, &msock);
maapi_cli_printf(msock, (tctx)->uinfo->usess, "HELLO"); \

DEBUG item does not exist - no cli session

Hi,

Try these:
maapi_user_message()
maapi_sys_message()
maapi_prio_message()