From 2fcad0c85a0f4b46d610c3c5e63d79c378684196 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 13 Feb 2005 17:23:08 +0000 Subject: [PATCH] don't print 'algorithm unavailable' git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2905 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/detect/sensors-detect | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/prog/detect/sensors-detect b/prog/detect/sensors-detect index 765dba12..d1acaec8 100755 --- a/prog/detect/sensors-detect +++ b/prog/detect/sensors-detect @@ -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}) {