schema compile MAINTENANCE improve warning text by the path
diff --git a/src/tree_schema_compile.c b/src/tree_schema_compile.c
index 26640ba..2941071 100644
--- a/src/tree_schema_compile.c
+++ b/src/tree_schema_compile.c
@@ -4071,8 +4071,8 @@
}
if (any->flags & LYS_CONFIG_W) {
- LOGWRN(ctx->ctx, "Use of %s to define configuration data is not recommended.",
- ly_stmt2str(any->nodetype == LYS_ANYDATA ? LY_STMT_ANYDATA : LY_STMT_ANYXML));
+ LOGWRN(ctx->ctx, "Use of %s to define configuration data is not recommended. %s",
+ ly_stmt2str(any->nodetype == LYS_ANYDATA ? LY_STMT_ANYDATA : LY_STMT_ANYXML), ctx->path);
}
done:
return ret;