From 0139b1e7407b9a88af60bb5908858ef11a6bbcfd Mon Sep 17 00:00:00 2001 From: qmfr <13720409820@163.com> Date: Fri, 17 Sep 2021 08:36:49 +0000 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E6=BA=90=E7=A0=81=E4=B8=AD?= =?UTF-8?q?=E7=9A=84printf?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/xcmd.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/xcmd.c b/src/xcmd.c index 6c39d75..5592fb4 100755 --- a/src/xcmd.c +++ b/src/xcmd.c @@ -92,7 +92,7 @@ static void xcmd_cmd_match(int argc, char*argv[]) if((strcmp(argv[1],"?") == 0) || (strcmp(argv[1],"-h") == 0)) { - printf("%s\r\n", p->help); + xcmd_print("%s\r\n", p->help); break; } } @@ -103,11 +103,11 @@ static void xcmd_cmd_match(int argc, char*argv[]) } if(flag) { - printf("\r\n"); + xcmd_print("\r\n"); } else { - printf("cmd \"%s\" does not exist\r\n", argv[0]); + xcmd_print("cmd \"%s\" does not exist\r\n", argv[0]); } }