summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2010-03-04 16:08:39 +0100
committerDavid Sommerseth <davids@redhat.com>2010-03-04 16:08:39 +0100
commitec8411a210f6fba017b7c7e3fe903ceb0621b0fd (patch)
tree9c189b40a3d1f04ad907990d1cf3c719fb5384bf /examples
parent7489917e75aa967d6e945360c92df829c436a635 (diff)
downloadpython-dmidecode-ec8411a210f6fba017b7c7e3fe903ceb0621b0fd.tar.gz
python-dmidecode-ec8411a210f6fba017b7c7e3fe903ceb0621b0fd.tar.xz
python-dmidecode-ec8411a210f6fba017b7c7e3fe903ceb0621b0fd.zip
Clarify one comment, where API presence is tested.
Diffstat (limited to 'examples')
-rwxr-xr-xexamples/dmidump.py6
1 files changed, 5 insertions, 1 deletions
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()