logger CHANGE rename ly_verb() to ly_log_level()
Align the setter function with the LY_LOG_LEVEL enums to simplify their
association.
diff --git a/tools/lint/commands.c b/tools/lint/commands.c
index 233b935..f487583 100644
--- a/tools/lint/commands.c
+++ b/tools/lint/commands.c
@@ -1397,22 +1397,22 @@
verb = arg + 5;
if (!strcmp(verb, "error") || !strcmp(verb, "0")) {
- ly_verb(LY_LLERR);
+ ly_log_level(LY_LLERR);
#ifndef NDEBUG
ly_verb_dbg(0);
#endif
} else if (!strcmp(verb, "warning") || !strcmp(verb, "1")) {
- ly_verb(LY_LLWRN);
+ ly_log_level(LY_LLWRN);
#ifndef NDEBUG
ly_verb_dbg(0);
#endif
} else if (!strcmp(verb, "verbose") || !strcmp(verb, "2")) {
- ly_verb(LY_LLVRB);
+ ly_log_level(LY_LLVRB);
#ifndef NDEBUG
ly_verb_dbg(0);
#endif
} else if (!strcmp(verb, "debug") || !strcmp(verb, "3")) {
- ly_verb(LY_LLDBG);
+ ly_log_level(LY_LLDBG);
#ifndef NDEBUG
ly_verb_dbg(LY_LDGDICT | LY_LDGYANG | LY_LDGYIN | LY_LDGXPATH | LY_LDGDIFF);
#endif
diff --git a/tools/lint/main_ni.c b/tools/lint/main_ni.c
index a276030..8a94ee0 100644
--- a/tools/lint/main_ni.c
+++ b/tools/lint/main_ni.c
@@ -686,7 +686,7 @@
}
/* derefered setting of verbosity in libyang after context initiation */
- ly_verb(verbose);
+ ly_log_level(verbose);
if (ly_set_new(&mods)) {
fprintf(stderr, "yanglint error: Preparing storage for the parsed modules failed.\n");