diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-10 08:33:03 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2008-11-10 08:33:03 +0000 |
commit | 0bbe5708820c6dcbef4937371c95bda8f5ba77a6 (patch) | |
tree | 84b87b17a6a2186587fadfff50ce3d7dc7ad559a /src/server | |
parent | d30b94d8dfb2f9b6f528ff7f0cf97bd310e4616b (diff) |
minor cleanup
git-svn-id: svn://svn.berlios.de/openocd/trunk@1149 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 2 | ||||
-rw-r--r-- | src/server/telnet_server.c | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index febad6e2..ea6f6b75 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -2184,7 +2184,7 @@ int handle_gdb_port_command(struct command_context_s *cmd_ctx, char *cmd, char * { if (argc == 0) { - command_print(cmd_ctx, "gdb_port: %ld", gdb_port); + command_print(cmd_ctx, "%d", gdb_port); return ERROR_OK; } diff --git a/src/server/telnet_server.c b/src/server/telnet_server.c index 6b090495..514b8d0a 100644 --- a/src/server/telnet_server.c +++ b/src/server/telnet_server.c @@ -637,7 +637,10 @@ int telnet_register_commands(command_context_t *command_context) int handle_telnet_port_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { if (argc == 0) + { + command_print(cmd_ctx, "%d", telnet_port); return ERROR_OK; + } telnet_port = strtoul(args[0], NULL, 0); |