1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-13 11:10:39 +00:00

rdcpuid: handle errors

This commit is contained in:
The Tumultuous Unicorn Of Darkness 2024-07-10 20:18:03 +02:00
commit 4d6cc787fe
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
4 changed files with 10 additions and 3 deletions

View file

@ -2247,6 +2247,7 @@ const char* cpuid_error(void)
{ ERR_INVRANGE , "Invalid given range"},
{ ERR_NOT_FOUND, "Requested type not found"},
{ ERR_IOCTL, "Error on ioctl"},
{ ERR_REQUEST, "Invalid request"},
};
unsigned i;
for (i = 0; i < COUNT_OF(matchtable); i++)