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/server | |
parent | 0cd414c7d69361768cf0a8b2c1844a8bb2354c8c (diff) | |
download | riscv-openocd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.zip riscv-openocd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.tar.gz riscv-openocd-6a2e83c01719cada03eb3bd13dc51d21d8bc964f.tar.bz2 |
log: improve log_callback_fn signature
Use unsigned type for line number in log_callback_fn signature.
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 4 | ||||
-rw-r--r-- | src/server/telnet_server.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 284def3..21b58d0 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -49,7 +49,7 @@ extern int gdb_error(connection_t *connection, int retval); static unsigned short gdb_port = 3333; 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); /* 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); } -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) { connection_t *connection = priv; diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index 84959e3..b77deff 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -101,7 +101,7 @@ int telnet_output(struct command_context_s *cmd_ctx, const char* 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) { connection_t *connection = priv; |