mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-12-04 21:58:18 +00:00
sensors-detect: Do not bufferize stdout during probes. This makes it
easier to see what is being tried in real time, in particular if the probing locks for any reason. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@4311 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
c2b92a6a48
commit
db652c9e92
2 files changed
+9
No files matched your search
@@ -8,6 +8,7 @@ SVN HEAD
|
|||||||
(Olexiy Avramchenko)
|
(Olexiy Avramchenko)
|
||||||
Add VIA CX700 detection
|
Add VIA CX700 detection
|
||||||
Drop legacy W83627HF ISA detection
|
Drop legacy W83627HF ISA detection
|
||||||
|
Don't bufferize stdout during probes
|
||||||
|
|
||||||
|
|
||||||
2.10.2 (20070115)
|
2.10.2 (20070115)
|
||||||
|
|||||||
@@ -2931,6 +2931,7 @@ sub scan_adapter
|
|||||||
next unless i2c_probe(\*FILE, $addr, $funcs);
|
next unless i2c_probe(\*FILE, $addr, $funcs);
|
||||||
printf "Client found at address 0x%02x\n",$addr;
|
printf "Client found at address 0x%02x\n",$addr;
|
||||||
|
|
||||||
|
$| = 1;
|
||||||
foreach $chip (@chip_ids) {
|
foreach $chip (@chip_ids) {
|
||||||
if (exists $chip->{i2c_addrs} and contains $addr, @{$chip->{i2c_addrs}}) {
|
if (exists $chip->{i2c_addrs} and contains $addr, @{$chip->{i2c_addrs}}) {
|
||||||
printf("\%-60s", sprintf("Probing for `\%s'... ", $chip->{name}));
|
printf("\%-60s", sprintf("Probing for `\%s'... ", $chip->{name}));
|
||||||
@@ -2962,12 +2963,14 @@ sub scan_adapter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$| = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sub scan_isa_bus
|
sub scan_isa_bus
|
||||||
{
|
{
|
||||||
my ($chip,$addr,$conf);
|
my ($chip,$addr,$conf);
|
||||||
|
$| = 1;
|
||||||
foreach $chip (@chip_ids) {
|
foreach $chip (@chip_ids) {
|
||||||
next if not exists $chip->{isa_addrs} or not exists $chip->{isa_detect};
|
next if not exists $chip->{isa_addrs} or not exists $chip->{isa_detect};
|
||||||
foreach $addr (@{$chip->{isa_addrs}}) {
|
foreach $addr (@{$chip->{isa_addrs}}) {
|
||||||
@@ -2989,6 +2992,7 @@ sub scan_isa_bus
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
$| = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
use vars qw(%superio);
|
use vars qw(%superio);
|
||||||
@@ -3107,6 +3111,7 @@ sub scan_superio
|
|||||||
|
|
||||||
printf("Probing for Super-I/O at 0x\%x/0x\%x\n", $addrreg, $datareg);
|
printf("Probing for Super-I/O at 0x\%x/0x\%x\n", $addrreg, $datareg);
|
||||||
|
|
||||||
|
$| = 1;
|
||||||
FAMILY:
|
FAMILY:
|
||||||
foreach my $family (@superio_ids) {
|
foreach my $family (@superio_ids) {
|
||||||
printf("\%-60s", "Trying family `$family->{family}'... ");
|
printf("\%-60s", "Trying family `$family->{family}'... ");
|
||||||
@@ -3143,6 +3148,7 @@ sub scan_superio
|
|||||||
|
|
||||||
exit_superio($addrreg, $datareg);
|
exit_superio($addrreg, $datareg);
|
||||||
}
|
}
|
||||||
|
$| = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -5637,9 +5643,11 @@ sub main
|
|||||||
print "Some CPUs or memory controllers may also contain embedded sensors.\n";
|
print "Some CPUs or memory controllers may also contain embedded sensors.\n";
|
||||||
print "Do you want to scan for them? (YES/no): ";
|
print "Do you want to scan for them? (YES/no): ";
|
||||||
unless (<STDIN> =~ /^\s*n/i) {
|
unless (<STDIN> =~ /^\s*n/i) {
|
||||||
|
$| = 1;
|
||||||
foreach my $entry (@cpu_ids) {
|
foreach my $entry (@cpu_ids) {
|
||||||
scan_cpu($entry);
|
scan_cpu($entry);
|
||||||
}
|
}
|
||||||
|
$| = 0;
|
||||||
}
|
}
|
||||||
print "\n";
|
print "\n";
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user