* [PATCH] swapon: remove invalid error string print outs
@ 2014-08-06 20:52 Sami Kerola
2014-08-11 12:57 ` Karel Zak
0 siblings, 1 reply; 2+ messages in thread
From: Sami Kerola @ 2014-08-06 20:52 UTC (permalink / raw)
To: util-linux; +Cc: kerolasa
To avoid messages like this:
$ swapon /dev/zram0
swapon: /dev/zram0: read swap header failed: Success
Signed-off-by: Sami Kerola <kerolasa@iki.fi>
---
sys-utils/swapon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c
index 193fcbf..ea5fdb2 100644
--- a/sys-utils/swapon.c
+++ b/sys-utils/swapon.c
@@ -511,13 +511,13 @@ static int swapon_checks(const char *special)
}
if (S_ISBLK(st.st_mode) && blkdev_get_size(fd, &devsize)) {
- warn(_("%s: get size failed"), special);
+ warnx(_("%s: get size failed"), special);
goto err;
}
hdr = swap_get_header(fd, &sig, &pagesize);
if (!hdr) {
- warn(_("%s: read swap header failed"), special);
+ warnx(_("%s: read swap header failed"), special);
goto err;
}
--
2.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] swapon: remove invalid error string print outs
2014-08-06 20:52 [PATCH] swapon: remove invalid error string print outs Sami Kerola
@ 2014-08-11 12:57 ` Karel Zak
0 siblings, 0 replies; 2+ messages in thread
From: Karel Zak @ 2014-08-11 12:57 UTC (permalink / raw)
To: Sami Kerola; +Cc: util-linux
On Wed, Aug 06, 2014 at 09:52:18PM +0100, Sami Kerola wrote:
> sys-utils/swapon.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Applied, thanks.
--
Karel Zak <kzak@redhat.com>
http://karelzak.blogspot.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-08-11 12:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-08-06 20:52 [PATCH] swapon: remove invalid error string print outs Sami Kerola
2014-08-11 12:57 ` Karel Zak
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).