diff options
Diffstat (limited to 'examples')
| -rwxr-xr-x | examples/dmidump.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/dmidump.py b/examples/dmidump.py index 977504f..11b04ff 100755 --- a/examples/dmidump.py +++ b/examples/dmidump.py @@ -55,14 +55,16 @@ if not root_user: print -#. Test all functions using /dev/mem... Using the legacy API +#. Test for presence of important functions using /dev/mem... Using the legacy API +#. This does not print any decoded info. If the call fails, either a warning will +#. be issued or an exception will be raised. This test is now only used to check +#. for presence of the legacy API, which "under the hood" uses +#. dmidecode.QuerySection(name), where name can be 'bios', 'system', etc. if root_user: print "*** bios ***\n"; dmidecode.bios() print_warnings() print "*** system ***\n"; dmidecode.system() print_warnings() - print "*** system ***\n"; dmidecode.system() - print_warnings() print "*** baseboard ***\n"; dmidecode.baseboard() print_warnings() print "*** chassis ***\n"; dmidecode.chassis() @@ -101,8 +103,6 @@ print "*** bios ***\n"; pprint(dmidecode.QuerySection('bios')) print_warnings() print "*** system ***\n"; pprint(dmidecode.QuerySection('system')) print_warnings() -print "*** system ***\n"; pprint(dmidecode.QuerySection('system')) -print_warnings() print "*** baseboard ***\n"; pprint(dmidecode.QuerySection('baseboard')) print_warnings() print "*** chassis ***\n"; pprint(dmidecode.QuerySection('chassis')) |
