diff --git a/example/main/example_cli.cli b/example/main/example_cli.cli index 698b59dc..1b28899a 100644 --- a/example/main/example_cli.cli +++ b/example/main/example_cli.cli @@ -52,10 +52,12 @@ validate("Validate changes"), cli_validate(); commit("Commit the changes"), cli_commit(); quit("Quit"), cli_quit(); -no("Negate or remove") debug("Debugging parts of the system"), cli_debug_cli((int32)0); -debug("Debugging parts of the system"), cli_debug_cli((int32)1);{ - level("Set debug level: 1..n") ("Set debug level (0..n)"), cli_debug_backend(); +debug("Debugging parts of the system"){ + cli("Set cli debug") ("Set debug level (0..n)"), cli_debug_cli(); + backend("Set backend debug") ("Set debug level (0..n)"), cli_debug_backend(); + restconf("Set restconf debug") ("Set debug level (0..n)"), cli_debug_restconf(); } + shell("System command") , cli_start_shell(); copy("Copy and create a new object") { running("Copy from running db") startup("Copy to startup config"), db_copy("running", "startup"); diff --git a/lib/src/clixon_proc.c b/lib/src/clixon_proc.c index dba3ed5c..affdf23b 100644 --- a/lib/src/clixon_proc.c +++ b/lib/src/clixon_proc.c @@ -627,7 +627,7 @@ clixon_process_operation(clicon_handle h, proc_operation op; int sched = 0; /* If set, process action should be scheduled, register a timeout */ - clicon_debug(1, "%s name:%s op:%s", __FUNCTION__, name, clicon_int2str(proc_operation_map, op)); + clicon_debug(1, "%s name:%s op:%s", __FUNCTION__, name, clicon_int2str(proc_operation_map, op0)); if (_proc_entry_list == NULL) goto ok; pe = _proc_entry_list;