diff --git a/examples/network/tcpclient.c b/examples/network/tcpclient.c index 793c71258a..d4c96f893a 100644 --- a/examples/network/tcpclient.c +++ b/examples/network/tcpclient.c @@ -160,15 +160,15 @@ __exit: static void usage(void) { - LOG_I("Usage: tcpclient -h -p "); - LOG_I(" tcpclient --stop"); - LOG_I(" tcpclient --help"); - LOG_I(""); - LOG_I("Miscellaneous:"); - LOG_I(" -h Specify host address"); - LOG_I(" -p Specify the host port number"); - LOG_I(" --stop Stop tcpclient program"); - LOG_I(" --help Print help information"); + rt_kprintf("Usage: tcpclient -h -p \n"); + rt_kprintf(" tcpclient --stop\n"); + rt_kprintf(" tcpclient --help\n"); + rt_kprintf("\n"); + rt_kprintf("Miscellaneous:\n"); + rt_kprintf(" -h Specify host address\n"); + rt_kprintf(" -p Specify the host port number\n"); + rt_kprintf(" --stop Stop tcpclient program\n"); + rt_kprintf(" --help Print help information\n"); } static void tcpclient_test(int argc, char** argv) diff --git a/examples/network/tcpserver.c b/examples/network/tcpserver.c index 1e068451b4..264b6f7c83 100644 --- a/examples/network/tcpserver.c +++ b/examples/network/tcpserver.c @@ -197,14 +197,14 @@ __exit: static void usage(void) { - LOG_I("Usage: tcpserver -p "); - LOG_I(" tcpserver --stop"); - LOG_I(" tcpserver --help"); - LOG_I(""); - LOG_I("Miscellaneous:"); - LOG_I(" -p Specify the host port number"); - LOG_I(" --stop Stop tcpserver program"); - LOG_I(" --help Print help information"); + rt_kprintf("Usage: tcpserver -p \n"); + rt_kprintf(" tcpserver --stop\n"); + rt_kprintf(" tcpserver --help\n"); + rt_kprintf("\n"); + rt_kprintf("Miscellaneous:\n"); + rt_kprintf(" -p Specify the host port number\n"); + rt_kprintf(" --stop Stop tcpserver program\n"); + rt_kprintf(" --help Print help information\n"); } static void tcpserver_test(int argc, char** argv) diff --git a/examples/network/udpclient.c b/examples/network/udpclient.c index 80cf521adf..40542b9fa1 100644 --- a/examples/network/udpclient.c +++ b/examples/network/udpclient.c @@ -83,16 +83,16 @@ static void udpclient(void *arg) static void usage(void) { - LOG_I("Usage: udpclient -h -p [--cnt] [count]"); - LOG_I(" udpclient --stop"); - LOG_I(" udpclient --help"); - LOG_I(""); - LOG_I("Miscellaneous:"); - LOG_I(" -h Specify host address"); - LOG_I(" -p Specify the host port number"); - LOG_I(" --cnt Specify the send data count"); - LOG_I(" --stop Stop tcpclient program"); - LOG_I(" --help Print help information"); + rt_kprintf("Usage: udpclient -h -p [--cnt] [count]\n"); + rt_kprintf(" udpclient --stop\n"); + rt_kprintf(" udpclient --help\n"); + rt_kprintf("\n"); + rt_kprintf("Miscellaneous:\n"); + rt_kprintf(" -h Specify host address\n"); + rt_kprintf(" -p Specify the host port number\n"); + rt_kprintf(" --cnt Specify the send data count\n"); + rt_kprintf(" --stop Stop tcpclient program\n"); + rt_kprintf(" --help Print help information\n"); } static void udpclient_test(int argc, char** argv) diff --git a/examples/network/udpserver.c b/examples/network/udpserver.c index 15cc2096d6..c40a1972b4 100644 --- a/examples/network/udpserver.c +++ b/examples/network/udpserver.c @@ -131,14 +131,14 @@ __exit: static void usage(void) { - LOG_I("Usage: udpserver -p "); - LOG_I(" udpserver --stop"); - LOG_I(" udpserver --help"); - LOG_I(""); - LOG_I("Miscellaneous:"); - LOG_I(" -p Specify the host port number"); - LOG_I(" --stop Stop udpserver program"); - LOG_I(" --help Print help information"); + rt_kprintf("Usage: udpserver -p \n"); + rt_kprintf(" udpserver --stop\n"); + rt_kprintf(" udpserver --help\n"); + rt_kprintf("\n"); + rt_kprintf("Miscellaneous:\n"); + rt_kprintf(" -p Specify the host port number\n"); + rt_kprintf(" --stop Stop udpserver program\n"); + rt_kprintf(" --help Print help information\n"); } static void udpserver_test(int argc, char** argv)