]> git.sur5r.net Git - openocd/commitdiff
commands: make error messages a bit more terse
authorØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 11 Jan 2010 11:53:55 +0000 (12:53 +0100)
committerØyvind Harboe <oyvind.harboe@zylin.com>
Mon, 11 Jan 2010 11:58:06 +0000 (12:58 +0100)
we don't need to know the build path of command.c when
reading normal user level error messages.

Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
src/helper/command.c

index 568596d17b96afe4c92bd30aef2f44eb8988ad2c..cf66f8a4c701a2c402a4133880e294ca76441f9d 100644 (file)
@@ -349,7 +349,7 @@ static int register_command_handler(struct command_context *cmd_ctx,
        if (NULL == override_name)
                return JIM_ERR;
 
-       retval = Jim_Eval_Named(interp, override_name, __FILE__, __LINE__);
+       retval = Jim_Eval_Named(interp, override_name, __THIS__FILE__ , __LINE__);
        free((void *)override_name);
 
        return retval;