X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fi386-io-windows.h;h=6bb578cb40d74c0fccefc119e66e858ad8b9b4d3;hb=fffda29af8cb15e77fd77a72295c2ff9cef09e3c;hp=1509d7de86803252718d3f70aa11054872b841a6;hpb=637ad022fcc53da9ef84d11f9772bcb02c0d02ea;p=pciutils.git diff --git a/lib/i386-io-windows.h b/lib/i386-io-windows.h index 1509d7d..6bb578c 100644 --- a/lib/i386-io-windows.h +++ b/lib/i386-io-windows.h @@ -1343,7 +1343,8 @@ intel_setup_io(struct pci_access *a) /* On NT-based systems issue ProcessUserModeIOPL syscall which changes IOPL to 3. */ if (!SetProcessUserModeIOPL()) { - a->warning("NT ProcessUserModeIOPL call failed with error: %lu.", (unsigned long int)GetLastError()); + DWORD error = GetLastError(); + a->debug("NT ProcessUserModeIOPL call failed: %s.", error == ERROR_INVALID_FUNCTION ? "Not Implemented" : error == ERROR_PRIVILEGE_NOT_HELD ? "Access Denied" : "Operation Failed"); return 0; }