mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-06 15:51:34 +00:00
don't print 'algorithm unavailable'
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2905 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
05018a9613
commit
2fcad0c85a
1 file changed
+5
-1
@@ -4695,7 +4695,11 @@ sub print_chips_report
|
||||
my $is_isa = exists $data->{isa_addr};
|
||||
print " * ";
|
||||
if ($is_i2c) {
|
||||
printf "Bus `%s' (%s)\n", $data->{i2c_adap}, $data->{i2c_algo};
|
||||
if ($data->{i2c_algo} eq "Algorithm unavailable") {
|
||||
printf "Bus `%s'\n", $data->{i2c_adap};
|
||||
} else {
|
||||
printf "Bus `%s' (%s)\n", $data->{i2c_adap}, $data->{i2c_algo};
|
||||
}
|
||||
printf " Busdriver `%s', I2C address 0x%02x",
|
||||
$data->{i2c_driver}, $data->{i2c_addr};
|
||||
if (exists $data->{i2c_sub_addrs}) {
|
||||
|
||||
Reference in new issue
Block a user