schema compile BUGFIX read specific struct members
Refs #1682
diff --git a/src/schema_compile_node.c b/src/schema_compile_node.c
index ebd9248..2afc4f6 100644
--- a/src/schema_compile_node.c
+++ b/src/schema_compile_node.c
@@ -677,13 +677,13 @@
if (range_expected) {
LOGVAL(ctx->ctx, LYVE_SYNTAX_YANG,
"Invalid %s restriction - unexpected end of the expression after \"..\" (%s).",
- length_restr ? "length" : "range", range_p->arg);
+ length_restr ? "length" : "range", range_p->arg.str);
ret = LY_EVALID;
goto cleanup;
} else if (!parts || (parts_done == LY_ARRAY_COUNT(parts))) {
LOGVAL(ctx->ctx, LYVE_SYNTAX_YANG,
"Invalid %s restriction - unexpected end of the expression (%s).",
- length_restr ? "length" : "range", range_p->arg);
+ length_restr ? "length" : "range", range_p->arg.str);
ret = LY_EVALID;
goto cleanup;
}
@@ -853,7 +853,7 @@
baseerror:
LOGVAL(ctx->ctx, LYVE_SYNTAX_YANG,
"Invalid %s restriction - the derived restriction (%s) is not equally or more limiting.",
- length_restr ? "length" : "range", range_p->arg);
+ length_restr ? "length" : "range", range_p->arg.str);
ret = LY_EVALID;
goto cleanup;
}