commit | fea54dc35d8df04522527ba828e1af452fb4f633 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Wed Feb 17 13:12:16 2016 +0100 |
committer | Michal Vasko <mvasko@cesnet.cz> | Wed Feb 17 13:12:16 2016 +0100 |
tree | 6b0493ae7e0b1833e21c43c6f2b185cd93022e0c | |
parent | 3b5d23dec3b1731f593e1242dece2237f05fcce9 [diff] [blame] |
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); }