From ec8411a210f6fba017b7c7e3fe903ceb0621b0fd Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 4 Mar 2010 16:08:39 +0100 Subject: Clarify one comment, where API presence is tested. --- examples/dmidump.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/dmidump.py b/examples/dmidump.py index 977504f..869262a 100755 --- a/examples/dmidump.py +++ b/examples/dmidump.py @@ -55,7 +55,11 @@ 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() -- cgit