Changeset 5154

Show
Ignore:
Timestamp:
03/22/08 09:46:24 (8 months ago)
Author:
khali
Message:

Use the same formatting for CAS latencies for all memory types.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • i2c-tools/trunk/eeprom/decode-dimms.pl

    r5153 r5154  
    332332} 
    333333 
     334sub cas_latencies(@) 
     335{ 
     336        return "None" unless @_; 
     337        return join ', ', map("${_}T", sort { $b <=> $a } @_); 
     338} 
     339 
    334340sub printl ($$) # print a line w/ label and value 
    335341{ 
     
    552558 
    553559        $l = "Supported CAS Latencies"; 
    554         if (@cas) { $temp = join ', ', @cas; } 
    555         else { $temp = "None"; } 
    556         printl $l, $temp; 
     560        printl $l, cas_latencies(@cas); 
    557561 
    558562        $l = "Supported CS Latencies"; 
     
    761765 
    762766# latencies 
    763         if (keys %cas) { $temp = join ', ', sort { $b <=> $a } keys %cas; } 
    764         else { $temp = "None"; } 
    765         printl "Supported CAS Latencies", $temp; 
     767        printl "Supported CAS Latencies", cas_latencies(keys %cas); 
    766768 
    767769        my @array; 
     
    966968 
    967969# latencies 
    968         if (keys %cas) { $temp = join ', ', map("${_}T", sort { $b <=> $a } keys %cas); } 
    969         else { $temp = "None"; } 
    970         printl "Supported CAS Latencies (tCL)", $temp; 
     970        printl "Supported CAS Latencies (tCL)", cas_latencies(keys %cas); 
    971971 
    972972# timings