diff --git a/sfreport.pl b/sfreport.pl index 1c0a8b2..58cd2f9 100644 --- a/sfreport.pl +++ b/sfreport.pl @@ -22,8 +22,8 @@ # AMD Solarflare device/driver identifiers. use constant driver_name_re => 'sfc\w*|onload|xilinx_efct'; use constant rpm_name_prefixes => - 'kernel-module-sfc-', 'kmod-solarflare-sfc-', 'sfc-dkms', 'sfutils', 'openonload', 'solar_capture', 'sfptp', 'kernel-module-xilinx-efct'; -use constant deb_name_prefixes => 'sfc-modules-', 'xilinx-efct'; + 'kernel-module-sfc-', 'kmod-solarflare-sfc-', 'sfc-dkms', 'sfutils', 'onload', 'openonload', 'enterpriseonload', 'solar_capture', 'sfptp', 'kernel-module-xilinx-efct'; +use constant deb_name_prefixes => 'sfc-modules-', 'xilinx-efct', 'onload', 'enterpriseonload'; use constant EFX_VENDID_SFC => 0x1924; use constant EFX_VENDID_XILINX => 0x10ee; @@ -1073,6 +1073,9 @@ sub new { substr($table, $pos, $header_len), substr($table, $pos + $header_len, $next - $pos - $header_len)); + STDERR->print + ("WARNING: This script will not provide a full report\n" + ."unless you run it as root.\n"); ++$i; $pos = $next; }