diff options
author | Matt Kraai <kraai@debian.org> | 2000-12-18 03:57:16 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-12-18 03:57:16 +0000 |
commit | 1fa1adea2ae16d4f4c82d7466905dce4c6edd5f5 (patch) | |
tree | b85a425c19b299f5d8635599e11c78c96f12a4c2 /util-linux/freeramdisk.c | |
parent | 0dab82997777bffb95d01d68e1628ee79207a03d (diff) |
Change calls to error_msg.* and strerror to use perror_msg.*.
Diffstat (limited to 'util-linux/freeramdisk.c')
-rw-r--r-- | util-linux/freeramdisk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/util-linux/freeramdisk.c b/util-linux/freeramdisk.c index a568cc67c..a2b17c673 100644 --- a/util-linux/freeramdisk.c +++ b/util-linux/freeramdisk.c @@ -43,10 +43,10 @@ freeramdisk_main(int argc, char **argv) } if ((f = open(argv[1], O_RDWR)) == -1) { - error_msg_and_die( "cannot open %s: %s\n", argv[1], strerror(errno)); + perror_msg_and_die("cannot open %s", argv[1]); } if (ioctl(f, BLKFLSBUF) < 0) { - error_msg_and_die( "failed ioctl on %s: %s\n", argv[1], strerror(errno)); + perror_msg_and_die("failed ioctl on %s", argv[1]); } /* Don't bother closing. Exit does * that, so we can save a few bytes */ |