OSDN Git Service

xioctl() error message should use hex ioctl number; that's what headers list.
authorRob Landley <rob@landley.net>
Sun, 19 May 2013 05:14:45 +0000 (00:14 -0500)
committerRob Landley <rob@landley.net>
Sun, 19 May 2013 05:14:45 +0000 (00:14 -0500)
lib/lib.c

index 1066ef9..813677d 100644 (file)
--- 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;
 }