aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2022-11-13 17:05:46 +0100
committerMartin Mares <mj@ucw.cz>2022-11-13 17:05:46 +0100
commite16f124617c9133f63076ad23653fe548d031e44 (patch)
treeff6c8b768a7bc21b2376fd12eb8371bb9ecd77fb
parent43c7706c2f233b63c40bb5a4d9c3536310192e0f (diff)
parentfffda29af8cb15e77fd77a72295c2ff9cef09e3c (diff)
downloadpciutils-e16f124617c9133f63076ad23653fe548d031e44.tar.gz
Merge remote-tracking branch 'pali/i386-io-windows'
-rw-r--r--lib/i386-io-windows.h3
1 files changed, 2 insertions, 1 deletions
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;
}