From: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> Just eases debugging sparse/the context tracking itself. Signed-off-by: Johannes Berg <johannes@xxxxxxxxxxxxxxxx> --- expression.c | 2 ++ linearize.c | 2 +- 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/expression.c b/expression.c index 198816b..8c4451d 100644 --- a/expression.c +++ b/expression.c @@ -648,6 +648,8 @@ static struct token *postfix_expression(struct token *token, struct expression * copy->in = c->in; copy->out = c->out; copy->exact = c->exact; + copy->token = c->token; + copy->in_fn = c->context; add_ptr_list(&call->contexts, copy); if (!c->token) diff --git a/linearize.c b/linearize.c index 808b1bc..c9fe922 100644 --- a/linearize.c +++ b/linearize.c @@ -445,7 +445,7 @@ const char *show_instruction(struct instruction *insn) expression_str(insn->context_expr, ctxbuf, sizeof(ctxbuf)); buf += sprintf(buf, "%s, ", ctxbuf); } - buf += sprintf(buf, "%d", insn->increment); + buf += sprintf(buf, "%d %d", insn->increment, insn->required); break; } case OP_RANGE: -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html