From: Sami Kerola Date: Wed, 6 Aug 2014 20:52:18 +0000 (+0100) Subject: swapon: remove invalid error string print outs X-Git-Tag: v2.26-rc1~532 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3077ff49f3c69ae69cee576699f93d5854a7dee1;p=thirdparty%2Futil-linux.git swapon: remove invalid error string print outs To avoid messages like this: $ swapon /dev/zram0 swapon: /dev/zram0: read swap header failed: Success Signed-off-by: Sami Kerola --- diff --git a/sys-utils/swapon.c b/sys-utils/swapon.c index 193fcbf43f..ea5fdb28ac 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; }