Gentoo Archives: gentoo-commits

From: William Hubbs <williamh@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/openrc:master commit in: man/, src/libeinfo/
Date: Tue, 27 Aug 2013 15:44:00
Message-Id: 1377617208.72b58b9e6b7271bd4b20933b2992d55f8b4d31b4.WilliamH@OpenRC
1 commit: 72b58b9e6b7271bd4b20933b2992d55f8b4d31b4
2 Author: William Hubbs <w.d.hubbs <AT> gmail <DOT> com>
3 AuthorDate: Mon Aug 26 19:31:34 2013 +0000
4 Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 27 15:26:48 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/openrc.git;a=commit;h=72b58b9e
7
8 Revert "Libeinfo: do not suppress ewarn() messages"
9
10 This reverts commit 4ee62c7903c65557c493f51d6703264a816156cd.
11
12 The previously referenced commit broke consistency because ewarnx() was
13 respecting the EINFO_QUIET environment setting, but after this commit,
14 ewarn() was not.
15 Also, due to discussion on the below referenced bugs, I think we do
16 want to suppress warnings when EINFO_QUIET=yes.
17
18 X-Gentoo-Bug: 482396
19 X-Gentoo-Bug: 439174
20 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=482396
21 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=439174
22
23 ---
24 man/einfo.3 | 3 ++-
25 src/libeinfo/libeinfo.c | 2 +-
26 2 files changed, 3 insertions(+), 2 deletions(-)
27
28 diff --git a/man/einfo.3 b/man/einfo.3
29 index f613df3..0af12a8 100644
30 --- a/man/einfo.3
31 +++ b/man/einfo.3
32 @@ -105,7 +105,8 @@ and
33 respectively, but only work when
34 .Va EINFO_VERBOSE
35 is true. You can also make the
36 -.Fn einfo
37 +.Fn einfo ,
38 +.Fn ewarn ,
39 and
40 .Fn ebegin
41 functions silent by setting
42
43 diff --git a/src/libeinfo/libeinfo.c b/src/libeinfo/libeinfo.c
44 index 6f0ca76..d27bdb2 100644
45 --- a/src/libeinfo/libeinfo.c
46 +++ b/src/libeinfo/libeinfo.c
47 @@ -705,7 +705,7 @@ ewarn(const char *EINFO_RESTRICT fmt, ...)
48 int retval;
49 va_list ap;
50
51 - if (!fmt)
52 + if (!fmt || is_quiet())
53 return 0;
54 va_start(ap, fmt);
55 elogv(LOG_WARNING, fmt, ap);