log: improve log_callback_fn signature

Use unsigned type for line number in log_callback_fn signature.
This commit is contained in:
Zachary T Welch 2009-11-09 06:12:02 -08:00
parent 0cd414c7d6
commit 6a2e83c017
4 changed files with 6 additions and 6 deletions

View File

@ -49,10 +49,10 @@ Jim_Interp *interp = NULL;
int run_command(command_context_t *context, command_t *c, char *words[], int num_words); 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_Obj *tclOutput = (Jim_Obj *)privData;
Jim_AppendString(interp, tclOutput, string, strlen(string)); Jim_AppendString(interp, tclOutput, string, strlen(string));
} }

View File

@ -85,7 +85,7 @@ void log_catch(void);
void log_rethrow(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); const char *function, const char *string);
typedef struct log_callback_s typedef struct log_callback_s

View File

@ -49,7 +49,7 @@ extern int gdb_error(connection_t *connection, int retval);
static unsigned short gdb_port = 3333; static unsigned short gdb_port = 3333;
static const char *DIGITS = "0123456789abcdef"; static const char *DIGITS = "0123456789abcdef";
static void gdb_log_callback(void *priv, const char *file, int line, static void gdb_log_callback(void *priv, const char *file, unsigned line,
const char *function, const char *string); const char *function, const char *string);
/* number of gdb connections, mainly to supress gdb related debugging spam /* number of gdb connections, mainly to supress gdb related debugging spam
@ -1956,7 +1956,7 @@ int gdb_detach(connection_t *connection, target_t *target)
return gdb_put_packet(connection, "OK", 2); return gdb_put_packet(connection, "OK", 2);
} }
static void gdb_log_callback(void *priv, const char *file, int line, static void gdb_log_callback(void *priv, const char *file, unsigned line,
const char *function, const char *string) const char *function, const char *string)
{ {
connection_t *connection = priv; connection_t *connection = priv;

View File

@ -101,7 +101,7 @@ int telnet_output(struct command_context_s *cmd_ctx, const char* line)
return telnet_outputline(connection, line); return telnet_outputline(connection, line);
} }
void telnet_log_callback(void *priv, const char *file, int line, void telnet_log_callback(void *priv, const char *file, unsigned line,
const char *function, const char *string) const char *function, const char *string)
{ {
connection_t *connection = priv; connection_t *connection = priv;