From 2c971f2fcf6c6322a0ea584b2af4c3cef20d3d63 Mon Sep 17 00:00:00 2001 From: guowenxue <guowenxue@gmail.com> Date: Mon, 27 May 2024 17:29:22 +0800 Subject: [PATCH] update dump_buf in logger.c --- project/socketd/booster/logger.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/project/socketd/booster/logger.c b/project/socketd/booster/logger.c index 217eb02..ea93dd7 100644 --- a/project/socketd/booster/logger.c +++ b/project/socketd/booster/logger.c @@ -4,11 +4,11 @@ * * Filename: logger.c * Description: This file is common logger API functions - * + * * Version: 1.0.0(11/08/23) * Author: Guo Wenxue <guowenxue@gmail.com> * ChangeLog: 1, Release initial version on "11/08/23 16:18:43" - * + * ********************************************************************************/ #include <stdio.h> @@ -79,7 +79,7 @@ } else { - if ( (err = pthread_mutex_unlock(l) != 0) ) + if ( (err = pthread_mutex_unlock(l)) != 0 ) log_error("Unable to unlock log lock: %s", strerror(err)); } } -- Gitblit v1.9.1