sensors/lm_sensors-r6254-detect-print-kernel-cpu.patch
Jean Delvare caff03032d - lm_sensors-r6216-fancontrol-moving-hwmon-attributes.patch:
fancontrol: Deal with moving hwmon attributes.
- lm_sensors-r6237-default-config-NCT6779-NCT6791.patch:
  sensors.conf.default: Add support for NCT6779 and NCT6791.
- lm_sensors-r6254-detect-print-kernel-cpu.patch: Print kernel
  version and processor information.
- lm_sensors-r6255-fix-shell-error-FCFANS.patch: fancontrol: Fix
  shell error when FCFANS is not set (bnc#903520).

OBS-URL: https://build.opensuse.org/package/show/Base:System/sensors?expand=0&rev=82
2014-11-05 10:45:39 +00:00

47 lines
1.4 KiB
Diff

From: Jean Delvare <jdelvare@suse.de>
Subject: Print kernel version and processor information
Upstream: Committed (http://www.lm-sensors.org/changeset/6254)
Print the kernel version and the processor information, to make user
support easier.
---
prog/detect/sensors-detect | 13 +++++++++++++
1 file changed, 13 insertions(+)
--- lm_sensors-3.3.5.orig/prog/detect/sensors-detect 2014-11-05 11:39:50.581478880 +0100
+++ lm_sensors-3.3.5/prog/detect/sensors-detect 2014-11-05 11:39:56.331606058 +0100
@@ -2688,6 +2688,11 @@ sub initialize_kernel_version
}
}
+sub print_kernel_version
+{
+ printf "# Kernel: \%d.\%d.\%d\%s \%s\n", @kernel_version, $kernel_arch;
+}
+
sub kernel_version_at_least
{
my ($vers, $plvl, $slvl) = @_;
@@ -2732,6 +2737,12 @@ sub initialize_cpu_list
push @cpu, $entry if scalar keys(%{$entry}); # Last entry
}
+sub print_cpu_info
+{
+ my $cpu = $cpu[0];
+ print "# Processor: $cpu->{'model name'} ($cpu->{'cpu family'}/$cpu->{model}/$cpu->{stepping})\n";
+}
+
# @i2c_adapters is a list of references to hashes, one hash per I2C/SMBus
# adapter present on the system. Each entry has the following keys: path,
# parent, name (directly taken from sysfs), driver and autoload.
@@ -6908,6 +6919,8 @@ sub main
print "# sensors-detect revision $revision\n";
initialize_dmi_data();
print_dmi_summary();
+ print_kernel_version();
+ print_cpu_info();
print "\n";
if ($opt{auto}) {