flow: fix a debug statement
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Mar 2013 12:36:57 +0000 (14 15:36 +0300)
committerDan Carpenter <dan.carpenter@oracle.com>
Thu, 14 Mar 2013 12:36:57 +0000 (14 15:36 +0300)
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 <dan.carpenter@oracle.com>
smatch_flow.c

index 401e599..2a1baa0 100644 (file)
@@ -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);