summaryrefslogtreecommitdiff
diff options
-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()