mirror of
https://github.com/anrieff/libcpuid
synced 2025-10-13 11:10:39 +00:00
rdcpuid: handle errors
This commit is contained in:
parent
0d71be934e
commit
4d6cc787fe
4 changed files with 10 additions and 3 deletions
|
@ -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++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue