!20 netserver: suppress debug log by default

From: @baiguoguo 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-05-08 06:19:56 +00:00 committed by Gitee
commit 9f1de3eedf
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 31 additions and 1 deletions

View File

@ -2,13 +2,14 @@
Name: netperf
Version: 2.7.0
Release: 6
Release: 7
Summary: A Performance benchmark testing tool fro TCP/UDP
License: MIT
URL: http://github.com/HewlettPackard/netperf
Source0: https://github.com/HewlettPackard/netperf/archive/%{name}-%{_version}.tar.gz
Patch1: netperf-fix-multiple-definition.patch
Patch2: netserver-suppress-debug-log-by-default.patch
BuildRequires: gcc texinfo texinfo-tex
@ -20,6 +21,7 @@ netperf is a collection of many different network performance benchmarking tool
%prep
%setup -q -n %{name}-%{name}-%{version}
%patch1
%patch2
%build
%configure
@ -53,6 +55,9 @@ netperf is a collection of many different network performance benchmarking tool
%{_mandir}/man1/*
%changelog
* Thu Apr 18 2024 baiguo <baiguo@kylinos.cn> - 2.7.0-7
- netserver: suppress debug log by default
* Fri Nov 11 2022 xu_ping <xuping33@h-partners.com> - 2.7.0-6
- change source pac

View File

@ -0,0 +1,25 @@
From ef83b1fda6a95a675f60e4d01ecbdf9d4f9d7fd2 Mon Sep 17 00:00:00 2001
From: Marcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Date: Thu, 18 Apr 2024 21:01:19 +0800
Subject: [PATCH] netserver: suppress debug log by default
---
src/netserver.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git ./src/netserver.c ./src/netserver.c
index 9534722..b8b8c49 100644
--- ./src/netserver.c
+++ ./src/netserver.c
@@ -196,7 +196,7 @@ int daemon_parent = 0;
int not_inetd;
int want_daemonize;
int spawn_on_accept;
-int suppress_debug = 0;
+int suppress_debug = 1;
extern char *optarg;
extern int optind, opterr;
--
2.27.0