schema tree REFACTOR compatibility of lysp_module and lysp_submodule
Also, the main module can now be accessed directly.
diff --git a/src/printer_yin.c b/src/printer_yin.c
index ccbc1a5..52a2f7e 100644
--- a/src/printer_yin.c
+++ b/src/printer_yin.c
@@ -1502,7 +1502,7 @@
static void
yprp_belongsto(struct ypr_ctx *ctx, const struct lysp_submodule *submodp)
{
- ypr_open(ctx, "belongs-to", "module", submodp->belongsto, 1);
+ ypr_open(ctx, "belongs-to", "module", submodp->mod->name, 1);
LEVEL++;
yprp_extension_instances(ctx, LYEXT_SUBSTMT_BELONGSTO, 0, submodp->exts, NULL, 0);
ypr_substmt(ctx, LYEXT_SUBSTMT_PREFIX, 0, submodp->prefix, submodp->exts);