summaryrefslogtreecommitdiff
diff options
authorPMR <pmr@pmr-lander>2019-05-09 08:30:31 +0000
committerPMR <pmr@pmr-lander>2019-05-09 08:30:31 +0000
commitc21c401222f959570815b6863edfa470072b806a (patch)
tree0c8e0b4d259c55e9a2e1c987da3f687e70d55918
parentbaaffdd2176149c6cae6b16135769e7308a917d1 (diff)
parent620cbfd8b6cfdb778f79de07d4011a80d03d4157 (diff)
Merge #367103 from ~jocave/plainbox-provider-checkbox:add-dmesg-to-driver-infosnap-2019-05-14T0908
-rwxr-xr-xbin/net_driver_info6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/net_driver_info b/bin/net_driver_info
index 6bc8058..05585ba 100755
--- a/bin/net_driver_info
+++ b/bin/net_driver_info
@@ -10,6 +10,7 @@
# identify in the special interest list!
from pathlib import Path
+import subprocess as sp
import sys
# Store pairs of (interface, driver)
@@ -43,3 +44,8 @@ for interface, driver in driver_list:
with open(str(path), 'r') as f:
print(" {}: {}".format(path.name, f.read().strip()))
print()
+ print('Checking kernel ring buffer for {} messages:'.format(driver))
+ cmd = "dmesg -T -x | grep {} || true".format(driver)
+ output = sp.check_output(cmd, shell=True)
+ print(output.decode(sys.stdout.encoding))
+ print()