ioctl-dbg-windows-20041028
authorJeffrey Altman <jaltman@mit.edu>
Thu, 28 Oct 2004 22:20:10 +0000 (22:20 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 28 Oct 2004 22:20:10 +0000 (22:20 +0000)
Output error codes in hex

src/sys/pioctl_nt.c

index 2441a45..cd2ca48 100644 (file)
@@ -530,7 +530,7 @@ pioctl(char *pathp, long opcode, struct ViceIoctl *blobp, int follow)
        CloseHandle(reqHandle);
        errno = CMtoUNIXerror(temp);
         if ( IoctlDebug() )
-            fprintf(stderr, "pioctl temp != 0: %d\r\n",temp);
+            fprintf(stderr, "pioctl temp != 0: 0x%X\r\n",temp);
        return -1;
     }