schema tree REFACTOR compatibility of lysp_module and lysp_submodule
Also, the main module can now be accessed directly.
diff --git a/src/printer_yang.c b/src/printer_yang.c
index 4405c2a..832ee10 100644
--- a/src/printer_yang.c
+++ b/src/printer_yang.c
@@ -2244,7 +2244,7 @@
static void
yprp_belongsto(struct ypr_ctx *ctx, const struct lysp_submodule *submodp)
{
- ly_print_(ctx->out, "%*sbelongs-to %s {\n", INDENT, submodp->belongsto);
+ ly_print_(ctx->out, "%*sbelongs-to %s {\n", INDENT, submodp->mod->name);
LEVEL++;
yprp_extension_instances(ctx, LYEXT_SUBSTMT_BELONGSTO, 0, submodp->exts, NULL, 0);
ypr_substmt(ctx, LYEXT_SUBSTMT_PREFIX, 0, submodp->prefix, submodp->exts);