CHANGE libyang api changes reflected
diff --git a/src/log.c b/src/log.c
index 9a0b8ab..f4fb5ef 100644
--- a/src/log.c
+++ b/src/log.c
@@ -82,9 +82,15 @@
     va_end(ap);
 }
 
+static void
+nc_ly_log_clb(LY_LOG_LEVEL lvl, const char *msg, const char *UNUSED(path))
+{
+    print_clb(lvl, msg);
+}
+
 API void
 nc_set_print_clb(void (*clb)(NC_VERB_LEVEL, const char *))
 {
     print_clb = clb;
-    ly_set_log_clb((void (*)(LY_LOG_LEVEL, const char *))clb);
+    ly_set_log_clb(nc_ly_log_clb, 0);
 }