aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2013-05-19 00:14:45 -0500
committerRob Landley <rob@landley.net>2013-05-19 00:14:45 -0500
commit6a921ee56e2f989f6cadb0d9a4bc1855b9e4addf (patch)
treeb7b3cb4481748484702cadd66745740ef07a1c4c /lib
parent1c1db048ad86067de70305a6e737802cf96ea302 (diff)
downloadtoybox-6a921ee56e2f989f6cadb0d9a4bc1855b9e4addf.tar.gz
xioctl() error message should use hex ioctl number; that's what headers list.
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.c b/lib/lib.c
index 1066ef9a..813677dd 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -757,7 +757,7 @@ int xioctl(int fd, int request, void *data)
errno = 0;
rc = ioctl(fd, request, data);
- if (rc == -1 && errno) perror_exit("ioctl %d", request);
+ if (rc == -1 && errno) perror_exit("ioctl %x", request);
return rc;
}