This commit is contained in:
zzy 2023-11-02 23:30:19 +08:00
parent 32a4a51964
commit ec69cfa8b2
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ void receive_message(void* param)
if (res > 0 && res <= 1024) {
log_head_info_ex(buf, BUFFER_SIZE, "recv", g_mask);
tprintf(&std_mutex, buf);
tprintf(&std_mutex, "[Recv]:%d,%s", res, Buf);
tprintf(&std_mutex, "[Recv]:%d,\"%s\"\n", res, Buf);
}
else {
break;

View File

@ -52,7 +52,7 @@ void receive_message(void* param)
}
log_head_info_ex(buf, BUFFER_SIZE, "receive", g_mask);
tprintf(&std_mutex, buf);
tprintf(&std_mutex, "recv buf:%d,%s", res, Buf);
tprintf(&std_mutex, "recv buf:%d,\"%s\"\n", res, Buf);
send_the_message(sock, Buf, strlen(Buf)+1);
}
log_head_info_ex(buf, BUFFER_SIZE, "receive", g_mask);