diff options
| author | shandianchengzi <[email protected]> | 2023-05-18 22:42:44 +0800 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-05-18 10:42:44 -0400 |
| commit | a294d7da9a9be335dd8bae8bf688ce88fa58a83f (patch) | |
| tree | 0b7c21221e70be410523a04a3891ad70650fabe3 /bsp | |
| parent | c349fe68b8046a54aa33cdfd7471a6e2effe7cae (diff) | |
[HUST CSE][example] fix some typo bugs about 'sucess' and others. (#7528)
Diffstat (limited to 'bsp')
| -rw-r--r-- | bsp/microchip/common/applications/lwip_demo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bsp/microchip/common/applications/lwip_demo.c b/bsp/microchip/common/applications/lwip_demo.c index 85c6a97d93..697f580249 100644 --- a/bsp/microchip/common/applications/lwip_demo.c +++ b/bsp/microchip/common/applications/lwip_demo.c @@ -76,7 +76,7 @@ static void tcpclient(void *arg) /* 创建一个socket,类型是SOCKET_STREAM,TCP类型 */ if ((sock = socket(AF_INET, SOCK_STREAM, 0)) == -1) { - /* Failed on creatinf socket */ + /* Failed on creating socket */ /* 创建socket失败 */ LOG_E("Create socket error"); goto __exit; @@ -91,7 +91,7 @@ static void tcpclient(void *arg) /* 连接到服务端 */ if (connect(sock, (struct sockaddr *)&server_addr, sizeof(struct sockaddr)) == -1) { - /*Failed on connecting to server*/ + /* Failed on connecting to server */ /* 连接失败 */ LOG_E("Connect fail!"); goto __exit; @@ -123,14 +123,14 @@ static void tcpclient(void *arg) } else if (bytes_received == 0) { - /* Print warning message when recv function return 0 */ + /* Print warning message when recv function returns 0 */ /* 打印recv函数返回值为0的警告信息 */ - LOG_W("Received warning, recv function return 0."); + LOG_W("Received warning, recv function returns 0."); continue; } else { - /* Receive data sucessfully and append '\0' at the end of message */ + /* Receive data successfully and append '\0' at the end of message */ /* 有接收到数据,把末端清零 */ recv_data[bytes_received] = '\0'; @@ -160,9 +160,9 @@ static void tcpclient(void *arg) } else if (ret == 0) { - /* Print warning message when send function return 0 */ + /* Print warning message when send function returns 0 */ /* 打印send函数返回值为0的警告信息 */ - LOG_W("Send warning, send function return 0."); + LOG_W("Send warning, send function returns 0."); } } |
