diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-15 20:07:53 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-15 20:07:53 +0000 |
commit | ab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0 (patch) | |
tree | 3a29ec44d7f37fc0a4e380531666413fa30d7e12 /libbb/xfuncs.c | |
parent | bb23c069191f18ed11b826371ed3571e214b41e3 (diff) | |
download | busybox-w32-ab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0.tar.gz busybox-w32-ab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0.tar.bz2 busybox-w32-ab9c44b1a41c9a17cd0f8a8f1e5517756ccb8bf0.zip |
v[hp]error_msg have 2-3 callsites only -> incorporate there.
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r-- | libbb/xfuncs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 4e17c28bd..64061e4f0 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -648,7 +648,7 @@ void ioctl_or_perror_and_die(int fd, int request, void *argp, const char *fmt,.. | |||
648 | 648 | ||
649 | if (ioctl(fd, request, argp) < 0) { | 649 | if (ioctl(fd, request, argp) < 0) { |
650 | va_start(p, fmt); | 650 | va_start(p, fmt); |
651 | bb_vperror_msg(fmt, p); | 651 | bb_verror_msg(fmt, p, strerror(errno)); |
652 | /* xfunc_die can actually longjmp, so be nice */ | 652 | /* xfunc_die can actually longjmp, so be nice */ |
653 | va_end(p); | 653 | va_end(p); |
654 | xfunc_die(); | 654 | xfunc_die(); |
@@ -662,7 +662,7 @@ int ioctl_or_perror(int fd, int request, void *argp, const char *fmt,...) | |||
662 | 662 | ||
663 | if (ret < 0) { | 663 | if (ret < 0) { |
664 | va_start(p, fmt); | 664 | va_start(p, fmt); |
665 | bb_vperror_msg(fmt, p); | 665 | bb_verror_msg(fmt, p, strerror(errno)); |
666 | va_end(p); | 666 | va_end(p); |
667 | } | 667 | } |
668 | return ret; | 668 | return ret; |