From: Dan Carpenter Date: Thu, 14 Mar 2013 12:36:57 +0000 (+0300) Subject: flow: fix a debug statement X-Git-Tag: 1.59~261 X-Git-Url: https://repo.or.cz/w/smatch.git/commitdiff_plain/5b48940e4c18f1ecc53e33d3e0c4cb2da6ad1618 flow: fix a debug statement The "cur_func" string hadn't been updated to the name of the inline function at that point. I've moved it down so now it prints the right thing. Signed-off-by: Dan Carpenter --- diff --git a/smatch_flow.c b/smatch_flow.c index 401e599d..2a1baa0d 100644 --- a/smatch_flow.c +++ b/smatch_flow.c @@ -881,7 +881,6 @@ static void parse_inline(struct expression *call) struct expression_list *switch_expr_stack_bak = switch_expr_stack; struct symbol *cur_func_sym_bak = cur_func_sym; - sm_debug("inline function: %s\n", cur_func); __pass_to_client(call, INLINE_FN_START); final_pass = 0; /* don't print anything */ __inline_fn = call; @@ -900,6 +899,7 @@ static void parse_inline(struct expression *call) big_expression_stack = NULL; switch_expr_stack = NULL; + sm_debug("inline function: %s\n", cur_func); __unnullify_path(); loop_num = 0; __pass_to_client(call->fn->symbol, FUNC_DEF_HOOK);