!20 netserver: suppress debug log by default
From: @baiguoguo Reviewed-by: @wk333 Signed-off-by: @wk333
This commit is contained in:
commit
9f1de3eedf
@ -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
|
||||
|
||||
|
||||
25
netserver-suppress-debug-log-by-default.patch
Normal file
25
netserver-suppress-debug-log-by-default.patch
Normal 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user