From f0c4753ddb8fa32f7aa0e246f4205f608972c358 Mon Sep 17 00:00:00 2001 From: Franklin Wei Date: Mon, 28 Dec 2015 13:55:12 -0500 Subject: optimize --- src/telnet.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/telnet.c') diff --git a/src/telnet.c b/src/telnet.c index f984528..bd800ff 100644 --- a/src/telnet.c +++ b/src/telnet.c @@ -50,7 +50,7 @@ void telnet_handle_command(const unsigned char *buf) { if(c == commands[i].val) { - printf("%s ", commands[i].name); + debugf("%s ", commands[i].name); cmd = true; goto found; } @@ -62,14 +62,14 @@ void telnet_handle_command(const unsigned char *buf) default: break; } - printf("???: %d ", c); + debugf("???: %d ", c); found: ++buf; } if(cmd) - printf("\n"); + debugf("\n"); } void telnet_echo_off(void) -- cgit v1.1