From ed1d5698e81abb34c7fa355b70f960959bddb654 Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Thu, 8 Jul 2021 16:53:45 +0200 Subject: [PATCH] fix the belongs-to test --- lib/src/clixon_yang_parse_lib.c | 2 +- test/test_submodule.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/clixon_yang_parse_lib.c b/lib/src/clixon_yang_parse_lib.c index 18c21fc4..6668be60 100644 --- a/lib/src/clixon_yang_parse_lib.c +++ b/lib/src/clixon_yang_parse_lib.c @@ -1107,7 +1107,7 @@ yang_parse_recurse(clicon_handle h, goto done; } if (strcmp(yang_argument_get(ybelongto), yang_argument_get(yrealmod)) != 0){ - clicon_err(OE_YANG, ENOENT, "Sub-module \"%s\" references module \"%s\" in its belongs-to statement but should reference %s", + clicon_err(OE_YANG, ENOENT, "Sub-module \"%s\" references module \"%s\" in its belongs-to statement but should reference \"%s\"", submodule, yang_argument_get(ybelongto), yang_argument_get(yrealmod)); diff --git a/test/test_submodule.sh b/test/test_submodule.sh index 56396298..945fe611 100755 --- a/test/test_submodule.sh +++ b/test/test_submodule.sh @@ -122,7 +122,7 @@ EOF cat < $fsub2 submodule sub2 { yang-version 1.1; - belongs-to sub1 { + belongs-to main { prefix ex; } import extra2{