@@ -2203,8 +2203,8 @@ lys_compile_type(struct lysc_ctx *ctx, struct lysp_node *context_pnode, uint16_t
2203
2203
/* local part */
2204
2204
tctx_iter = (struct lys_type_item * )tpdf_chain .objs [u ];
2205
2205
if (tctx_iter -> tpdf == tctx -> tpdf ) {
2206
- LOGVAL (ctx -> ctx , LYVE_REFERENCE ,
2207
- "Invalid \"%s\" type reference - circular chain of types detected." , tctx -> tpdf -> name );
2206
+ LOGVAL (ctx -> ctx , LYVE_REFERENCE , "Invalid \"%s\" type reference - circular chain of types detected." ,
2207
+ tctx -> tpdf -> name );
2208
2208
free (tctx );
2209
2209
ret = LY_EVALID ;
2210
2210
goto cleanup ;
@@ -2214,8 +2214,8 @@ lys_compile_type(struct lysc_ctx *ctx, struct lysp_node *context_pnode, uint16_t
2214
2214
/* global part for unions corner case */
2215
2215
tctx_iter = (struct lys_type_item * )ctx -> tpdf_chain .objs [u ];
2216
2216
if (tctx_iter -> tpdf == tctx -> tpdf ) {
2217
- LOGVAL (ctx -> ctx , LYVE_REFERENCE ,
2218
- "Invalid \"%s\" type reference - circular chain of types detected." , tctx -> tpdf -> name );
2217
+ LOGVAL (ctx -> ctx , LYVE_REFERENCE , "Invalid \"%s\" type reference - circular chain of types detected." ,
2218
+ tctx -> tpdf -> name );
2219
2219
free (tctx );
2220
2220
ret = LY_EVALID ;
2221
2221
goto cleanup ;
@@ -2236,14 +2236,13 @@ lys_compile_type(struct lysc_ctx *ctx, struct lysp_node *context_pnode, uint16_t
2236
2236
2237
2237
/* basic checks */
2238
2238
if (basetype == LY_TYPE_UNKNOWN ) {
2239
- LOGVAL (ctx -> ctx , LYVE_REFERENCE ,
2240
- "Referenced type \"%s\" not found." , tctx_prev ? tctx_prev -> tpdf -> type .name : type_p -> name );
2239
+ LOGVAL (ctx -> ctx , LYVE_REFERENCE , "Referenced type \"%s\" not found." ,
2240
+ tctx_prev ? tctx_prev -> tpdf -> type .name : type_p -> name );
2241
2241
ret = LY_EVALID ;
2242
2242
goto cleanup ;
2243
2243
}
2244
2244
if (~type_substmt_map [basetype ] & type_p -> flags ) {
2245
- LOGVAL (ctx -> ctx , LYVE_SYNTAX_YANG , "Invalid type restrictions for %s type." ,
2246
- ly_data_type2str [basetype ]);
2245
+ LOGVAL (ctx -> ctx , LYVE_SYNTAX_YANG , "Invalid type restrictions for %s type." , ly_data_type2str [basetype ]);
2247
2246
ret = LY_EVALID ;
2248
2247
goto cleanup ;
2249
2248
}
@@ -2289,8 +2288,7 @@ lys_compile_type(struct lysc_ctx *ctx, struct lysp_node *context_pnode, uint16_t
2289
2288
ret = LY_EVALID ;
2290
2289
goto cleanup ;
2291
2290
} else if ((basetype == LY_TYPE_EMPTY ) && tctx -> tpdf -> dflt .str ) {
2292
- LOGVAL (ctx -> ctx , LYVE_SEMANTICS ,
2293
- "Invalid type \"%s\" - \"empty\" type must not have a default value (%s)." ,
2291
+ LOGVAL (ctx -> ctx , LYVE_SEMANTICS , "Invalid type \"%s\" - \"empty\" type must not have a default value (%s)." ,
2294
2292
tctx -> tpdf -> name , tctx -> tpdf -> dflt .str );
2295
2293
ret = LY_EVALID ;
2296
2294
goto cleanup ;
0 commit comments