changeset 904:44abb9cac9d7

xioctl() error message should use hex ioctl number; that's what headers list.
author Rob Landley <rob@landley.net>
date Sun, 19 May 2013 00:14:45 -0500
parents 159b84d04b33
children e875b03e1fcc
files lib/lib.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lib/lib.c	Sat May 18 22:33:40 2013 -0500
+++ b/lib/lib.c	Sun May 19 00:14:45 2013 -0500
@@ -757,7 +757,7 @@
 
   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;
 }