diff options
author | Zachary T Welch <zw@superlucidity.net> | 2009-11-09 06:12:02 -0800 |
---|---|---|
committer | Zachary T Welch <zw@superlucidity.net> | 2009-11-11 05:40:48 -0800 |
commit | 6a2e83c01719cada03eb3bd13dc51d21d8bc964f (patch) | |
tree | 20ae63d960b24a05d47fd103aa5600e4d689b78d /src/helper | |
parent | 0cd414c7d69361768cf0a8b2c1844a8bb2354c8c (diff) | |
download | openocd+libswd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.tar.gz openocd+libswd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.tar.bz2 openocd+libswd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.tar.xz openocd+libswd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.zip |
log: improve log_callback_fn signature
Use unsigned type for line number in log_callback_fn signature.
Diffstat (limited to 'src/helper')
-rw-r--r-- | src/helper/command.c | 4 | ||||
-rw-r--r-- | src/helper/log.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/command.c b/src/helper/command.c index 5d69ffb3..5f3c88dc 100644 --- a/src/helper/command.c +++ b/src/helper/command.c @@ -49,10 +49,10 @@ Jim_Interp *interp = NULL; int run_command(command_context_t *context, command_t *c, char *words[], int num_words); -static void tcl_output(void *privData, const char *file, int line, const char *function, const char *string) +static void tcl_output(void *privData, const char *file, unsigned line, + const char *function, const char *string) { Jim_Obj *tclOutput = (Jim_Obj *)privData; - Jim_AppendString(interp, tclOutput, string, strlen(string)); } diff --git a/src/helper/log.h b/src/helper/log.h index 15bd3c86..aabd1be2 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -85,7 +85,7 @@ void log_catch(void); void log_rethrow(void); -typedef void (*log_callback_fn)(void *priv, const char *file, int line, +typedef void (*log_callback_fn)(void *priv, const char *file, unsigned line, const char *function, const char *string); typedef struct log_callback_s |