librtas: Do not enable debug message by default
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
This commit is contained in:
parent
d63f28b77f
commit
ee3a29be5a
32
librtas-1.4.0-do-not-enable-debug-message.patch
Normal file
32
librtas-1.4.0-do-not-enable-debug-message.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From 23b6261c0205d834ab9aba67cb52e3f320c5058c Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
||||||
|
Date: Tue, 15 Mar 2016 15:35:05 +0530
|
||||||
|
Subject: [PATCH] librtas: Do not enable debug message by default
|
||||||
|
|
||||||
|
Commit eae18de3 removed dbg1 macro. But accidently enabled logging debug
|
||||||
|
message by default. This is confusing end users. Hence remove logging
|
||||||
|
debug message by default.
|
||||||
|
|
||||||
|
Fixes: eae18de3 (librtas: Update the dbg() macro)
|
||||||
|
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
|
||||||
|
CC: Nathan Fontenot <nfont@linux.vnet.ibm.com>
|
||||||
|
---
|
||||||
|
librtas_src/syscall.h | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/librtas_src/syscall.h b/librtas_src/syscall.h
|
||||||
|
index 42edf8f..f84ef37 100644
|
||||||
|
--- a/librtas_src/syscall.h
|
||||||
|
+++ b/librtas_src/syscall.h
|
||||||
|
@@ -64,7 +64,7 @@ extern int dbg_lvl;
|
||||||
|
|
||||||
|
#define dbg(_fmt, _args...) \
|
||||||
|
do { \
|
||||||
|
- if (dbg_lvl >= 0) \
|
||||||
|
+ if (dbg_lvl > 0) \
|
||||||
|
printf("librtas %s(): " _fmt, __func__, ##_args); \
|
||||||
|
} while (0)
|
||||||
|
|
||||||
|
--
|
||||||
|
2.5.0
|
||||||
|
|
@ -1,7 +1,7 @@
|
|||||||
Summary: Libraries to provide access to RTAS calls and RTAS events
|
Summary: Libraries to provide access to RTAS calls and RTAS events
|
||||||
Name: librtas
|
Name: librtas
|
||||||
Version: 1.4.0
|
Version: 1.4.0
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
URL: http://librtas.ozlabs.org
|
URL: http://librtas.ozlabs.org
|
||||||
License: LGPL
|
License: LGPL
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -10,6 +10,7 @@ Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
|
|||||||
# Fedora specific patch
|
# Fedora specific patch
|
||||||
Patch0: %{name}-1.3.4-libdir.patch
|
Patch0: %{name}-1.3.4-libdir.patch
|
||||||
Patch1: %{name}-1.3.6-ln.patch
|
Patch1: %{name}-1.3.6-ln.patch
|
||||||
|
Patch2: %{name}-1.4.0-do-not-enable-debug-message.patch
|
||||||
|
|
||||||
ExclusiveArch: ppc ppc64 ppc64le
|
ExclusiveArch: ppc ppc64 ppc64le
|
||||||
|
|
||||||
@ -36,6 +37,7 @@ developing programs using librtas.
|
|||||||
%setup -q
|
%setup -q
|
||||||
%patch0 -p1 -b .libdir
|
%patch0 -p1 -b .libdir
|
||||||
%patch1 -p1 -b .ln
|
%patch1 -p1 -b .ln
|
||||||
|
%patch2 -p1 -b .do-not-enable-debug-message
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# disable "-Werror=format-security" checking gcc option until we fix
|
# disable "-Werror=format-security" checking gcc option until we fix
|
||||||
@ -69,6 +71,9 @@ mkdir -p %{buildroot}/%{_libdir}
|
|||||||
%{_includedir}/librtasevent_v6.h
|
%{_includedir}/librtasevent_v6.h
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 21 2016 Vasant Hegde <hegdevasant@linux.vnet.ibm.com> - 1.4.0-2
|
||||||
|
- Do not enable debug message by default
|
||||||
|
|
||||||
* Fri Mar 11 2016 Sinny Kumari <sinnykumari@fedoraproject.org> - 1.4.0-1
|
* Fri Mar 11 2016 Sinny Kumari <sinnykumari@fedoraproject.org> - 1.4.0-1
|
||||||
- Update to latest upstream 1.4.0
|
- Update to latest upstream 1.4.0
|
||||||
- License change from CPL to LGPL
|
- License change from CPL to LGPL
|
||||||
|
Loading…
Reference in New Issue
Block a user