From c33bfd14030ee84d4da1a5083fe47271f4cb27bb Mon Sep 17 00:00:00 2001 From: yinbin Date: Tue, 5 Nov 2024 19:55:52 +0800 Subject: [PATCH] LOG: Optimize some log displays --- src/lstack/core/lstack_init.c | 2 +- src/lstack/core/lstack_thread_rpc.c | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lstack/core/lstack_init.c b/src/lstack/core/lstack_init.c index 8ffc3a1..276cdf8 100644 --- a/src/lstack/core/lstack_init.c +++ b/src/lstack/core/lstack_init.c @@ -264,7 +264,7 @@ __attribute__((constructor)) void gazelle_network_init(void) /* check conflict */ if (check_process_conflict() < 0) { - LSTACK_PRE_LOG(LSTACK_INFO, "Have another same primary process. WARNING: Posix API will use kernel mode!\n"); + LSTACK_PRE_LOG(LSTACK_INFO, "Main process has been initialized, this process will use kernel mode!\n"); return; } diff --git a/src/lstack/core/lstack_thread_rpc.c b/src/lstack/core/lstack_thread_rpc.c index aed792d..26bd16a 100644 --- a/src/lstack/core/lstack_thread_rpc.c +++ b/src/lstack/core/lstack_thread_rpc.c @@ -470,9 +470,6 @@ int rpc_call_connect(rpc_queue *queue, int fd, const struct sockaddr *addr, sock static void callback_getpeername(struct rpc_msg *msg) { msg->result = lwip_getpeername(msg->args[MSG_ARG_0].i, msg->args[MSG_ARG_1].p, msg->args[MSG_ARG_2].p); - if (msg->result != 0) { - LSTACK_LOG(ERR, LSTACK, "tid %ld, fd %d fail %ld\n", get_stack_tid(), msg->args[MSG_ARG_0].i, msg->result); - } } static void callback_getsockname(struct rpc_msg *msg) -- 2.33.0