Changeset 4311

Show
Ignore:
Timestamp:
01/24/07 22:05:49 (6 years ago)
Author:
khali
Message:

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.

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/CHANGES

    r4308 r4311  
    99                          Add VIA CX700 detection 
    1010                          Drop legacy W83627HF ISA detection 
     11                          Don't bufferize stdout during probes 
    1112 
    1213 
  • lm-sensors/trunk/prog/detect/sensors-detect

    r4310 r4311  
    29322932    printf "Client found at address 0x%02x\n",$addr; 
    29332933 
     2934    $| = 1; 
    29342935    foreach $chip (@chip_ids) { 
    29352936      if (exists $chip->{i2c_addrs} and contains $addr, @{$chip->{i2c_addrs}}) { 
     
    29632964      } 
    29642965    } 
     2966    $| = 0; 
    29652967  } 
    29662968} 
     
    29692971{ 
    29702972  my ($chip,$addr,$conf); 
     2973  $| = 1; 
    29712974  foreach $chip (@chip_ids) { 
    29722975    next if not exists $chip->{isa_addrs} or not exists $chip->{isa_detect}; 
     
    29902993    } 
    29912994  } 
     2995  $| = 0; 
    29922996} 
    29932997 
     
    31083112  printf("Probing for Super-I/O at 0x\%x/0x\%x\n", $addrreg, $datareg); 
    31093113 
     3114  $| = 1; 
    31103115  FAMILY:  
    31113116  foreach my $family (@superio_ids) { 
     
    31443149    exit_superio($addrreg, $datareg); 
    31453150  } 
     3151  $| = 0; 
    31463152} 
    31473153 
     
    56385644  print "Do you want to scan for them? (YES/no): "; 
    56395645  unless (<STDIN> =~ /^\s*n/i) { 
     5646    $| = 1; 
    56405647    foreach my $entry (@cpu_ids) { 
    56415648      scan_cpu($entry); 
    56425649    } 
     5650    $| = 0; 
    56435651  } 
    56445652  print "\n";