From 12a3e09f40771e4eef1464e14f85b1c9467a55e6 Mon Sep 17 00:00:00 2001 From: Andy Green Date: Sat, 6 Nov 2021 08:12:31 +0000 Subject: [PATCH] lejp: use string path matches in test app --- test-apps/test-lejp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-apps/test-lejp.c b/test-apps/test-lejp.c index b583f77b9..469ee7129 100644 --- a/test-apps/test-lejp.c +++ b/test-apps/test-lejp.c @@ -78,9 +78,9 @@ cb(struct lejp_ctx *ctx, char reason) break; } - lwsl_notice("%s%s: path %s match %d statckp %d\r\n", buf, reason_names[(unsigned int) + lwsl_notice("%s%s: path %s match '%s' statckp %d, ipos %d\r\n", buf, reason_names[(unsigned int) (reason) & (LEJP_FLAG_CB_IS_VALUE - 1)], ctx->path, - ctx->path_match, ctx->pst[ctx->pst_sp].ppos); + ctx->path_match ? tok[ctx->path_match - 1] : "(none)", ctx->pst[ctx->pst_sp].ppos, ctx->ipos); return 0; }