Closed marmistrz closed 5 years ago
The kernel filters some requests (and expects you to use the proper kernel interface for them). This is one of those cases. When iterating tokens the ones the kernel has like that are probably just worth automatically skipping.
https://github.com/torvalds/linux/blob/master/drivers/platform/x86/dell-smbios-base.c#L74
@superm1 what I mean is that the exception message has some garbage after the \n
.
value: token query failed: b'Low level SMI call failed.\n\xe0\xc0\xe0h\x7fU'
What I'd expect instead is:
value: token query failed: Low level SMI call failed.
I agree that doesn't look right, some problem in the string length handling on errors probably.
Closes #55. Closes #56.
I can't get decent error messages.
Please confirm if it's a bug in
smbios_token.py
, if yes: I'll leave it as it is.Btw. I fixed an awful
StopIteration
message: