summaryrefslogtreecommitdiffstats
path: root/sys-utils/dmesg.c
diff options
context:
space:
mode:
authorKarel Zak2012-05-15 17:45:17 +0200
committerKarel Zak2012-05-15 17:45:17 +0200
commit20a399822282522aee8a390bb1a8d85166dd1ea1 (patch)
tree818f8771721338aa85fc7daf7baa3a7cc4cd37ad /sys-utils/dmesg.c
parentschedutils: cleanup strtoxx_or_err() (diff)
downloadkernel-qcow2-util-linux-20a399822282522aee8a390bb1a8d85166dd1ea1.tar.gz
kernel-qcow2-util-linux-20a399822282522aee8a390bb1a8d85166dd1ea1.tar.xz
kernel-qcow2-util-linux-20a399822282522aee8a390bb1a8d85166dd1ea1.zip
sys-utils: cleanup strtoxx_or_err()
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'sys-utils/dmesg.c')
-rw-r--r--sys-utils/dmesg.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys-utils/dmesg.c b/sys-utils/dmesg.c
index e47b08705..854990361 100644
--- a/sys-utils/dmesg.c
+++ b/sys-utils/dmesg.c
@@ -745,8 +745,7 @@ int main(int argc, char *argv[])
ctl.raw = 1;
break;
case 's':
- bufsize = strtol_or_err(optarg,
- _("failed to parse buffer size"));
+ bufsize = strtou32_or_err(optarg, _("invalid buffer size argument"));
if (bufsize < 4096)
bufsize = 4096;
break;