libyang REFACTOR major logging updates

Structured error information instead of a
single error message.
diff --git a/src/parser_yin.c b/src/parser_yin.c
index ac4c820..3924d0e 100644
--- a/src/parser_yin.c
+++ b/src/parser_yin.c
@@ -3937,7 +3937,7 @@
     *submod = mod_p;
 
 cleanup:
-    LOG_LOCBACK(0, 0, 0, 1);
+    ly_log_location_revert(0, 0, 0, 1);
     if (ret) {
         lysp_module_free(&fctx, (struct lysp_module *)mod_p);
         lysp_yin_ctx_free(*yin_ctx);
@@ -4001,7 +4001,7 @@
     mod->parsed = mod_p;
 
 cleanup:
-    LOG_LOCBACK(0, 0, 0, 1);
+    ly_log_location_revert(0, 0, 0, 1);
     if (ret) {
         lysp_module_free(&fctx, mod_p);
         lysp_yin_ctx_free(*yin_ctx);