libyang REFACTOR major logging updates

Structured error information instead of a
single error message.
diff --git a/src/plugins_exts/schema_mount.c b/src/plugins_exts/schema_mount.c
index fada1c2..b349921 100644
--- a/src/plugins_exts/schema_mount.c
+++ b/src/plugins_exts/schema_mount.c
@@ -904,7 +904,7 @@
 {
     LY_ERR ret = LY_SUCCESS;
     uint32_t *prev_lo, temp_lo = LY_LOSTORE_LAST, i;
-    struct ly_err_item *err;
+    const struct ly_err_item *err;
     struct lyd_node *iter, *ext_data = NULL, *ref_first = NULL, *orig_parent = lyd_parent(sibling), *op_tree;
     struct lyd_node *ext_diff = NULL, *diff_parent = NULL;
     ly_bool ext_data_free = 0;