summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarel Zak <kzak@redhat.com>2014-10-14 12:14:05 +0200
committerKarel Zak <kzak@redhat.com>2014-10-24 11:10:06 +0200
commitfda297dd226610a60b85a40392b78dedcf255341 (patch)
tree214172527f81dfcbbb4cb4d8fa721935599ae1f0
parent1e3f80099317bb18df3c474090b58a75813a29eb (diff)
downloadutil-linux-fda297dd226610a60b85a40392b78dedcf255341.tar.gz
blkdiscard: fix err->errx()
Signed-off-by: Karel Zak <kzak@redhat.com>
-rw-r--r--sys-utils/blkdiscard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys-utils/blkdiscard.c b/sys-utils/blkdiscard.c
index 2f22af724..1eb2b2857 100644
--- a/sys-utils/blkdiscard.c
+++ b/sys-utils/blkdiscard.c
@@ -150,7 +150,7 @@ int main(int argc, char **argv)
/* is the range end behind the end of the device ?*/
if (range[0] > blksize)
- err(EXIT_FAILURE, _("%s: offset is greater than device size"), path);
+ errx(EXIT_FAILURE, _("%s: offset is greater than device size"), path);
end = range[0] + range[1];
if (end < range[0] || end > blksize)
range[1] = blksize - range[0];