Changeset 5156

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

More coding-style fixes.

Files:

Legend:

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

    r5155 r5156  
    431431        prints "Memory Characteristics"; 
    432432 
    433         my $k=0; 
    434         my $ii=0; 
     433        my $k = 0; 
     434        my $ii = 0; 
    435435 
    436436        $ii = ($bytes->[3] & 0x0f) + ($bytes->[4] & 0x0f) - 17; 
     
    456456        my $ctime = ($bytes->[9] >> 4) + ($bytes->[9] & 0xf) * 0.1; 
    457457 
    458         $trcd =$bytes->[29]; 
    459         $trp =$bytes->[27];; 
    460         $tras =$bytes->[30]; 
     458        $trcd = $bytes->[29]; 
     459        $trp = $bytes->[27];; 
     460        $tras = $bytes->[30]; 
    461461 
    462462        printl "tCL-tRCD-tRP-tRAS", 
     
    592592                if ($temp == 0) { printl $l, "Undefined!"; } 
    593593                else { 
    594                         if ($temp < 4 ) { $temp=$temp + 15; } 
     594                        if ($temp < 4 ) { $temp += 15; } 
    595595                        printl $l, $temp + (($bytes->[23] & 0xf) * 0.1) . " ns"; 
    596596                } 
     
    600600                if ($temp == 0) { printl $l, "Undefined!"; } 
    601601                else { 
    602                         if ($temp < 4 ) { $temp=$temp + 15; } 
     602                        if ($temp < 4 ) { $temp += 15; } 
    603603                        printl $l, $temp + (($bytes->[24] & 0xf) * 0.1) . " ns"; 
    604604                } 
     
    725725 
    726726#size computation 
    727         my $k=0; 
    728         my $ii=0; 
     727        my $k = 0; 
     728        my $ii = 0; 
    729729 
    730730        $ii = ($bytes->[3] & 0x0f) + ($bytes->[4] & 0x0f) - 17; 
     
    754754        my $ctime = ($bytes->[9] >> 4) + ($bytes->[9] & 0xf) * 0.1; 
    755755 
    756         $trcd =($bytes->[29] >> 2)+(($bytes->[29] & 3)*0.25); 
    757         $trp =($bytes->[27] >> 2)+(($bytes->[27] & 3)*0.25); 
     756        $trcd = ($bytes->[29] >> 2) + (($bytes->[29] & 3) * 0.25); 
     757        $trp = ($bytes->[27] >> 2) + (($bytes->[27] & 3) * 0.25); 
    758758        $tras = $bytes->[30]; 
    759759 
     
    905905 
    906906#size computation 
    907         my $k=0; 
    908         my $ii=0; 
     907        my $k = 0; 
     908        my $ii = 0; 
    909909 
    910910        $ii = ($bytes->[3] & 0x0f) + ($bytes->[4] & 0x0f) - 17; 
     
    957957        my $tras; 
    958958 
    959         $trcd =($bytes->[29] >> 2)+(($bytes->[29] & 3)*0.25); 
    960         $trp =($bytes->[27] >> 2)+(($bytes->[27] & 3)*0.25); 
    961         $tras =$bytes->[30]; 
     959        $trcd = ($bytes->[29] >> 2) + (($bytes->[29] & 3) * 0.25); 
     960        $trp = ($bytes->[27] >> 2) + (($bytes->[27] & 3) * 0.25); 
     961        $tras = $bytes->[30]; 
    962962 
    963963        printl "tCL-tRCD-tRP-tRAS", 
     
    10861086 
    10871087        $l = "Details for 100MHz Support"; 
    1088         $temp=""; 
     1088        $temp = ""; 
    10891089        if ($bytes->[63] & 1) { $temp .= "Intel Concurrent Auto-precharge\n"; } 
    10901090        if ($bytes->[63] & 2) { $temp .= "CAS Latency = 2\n"; } 
     
    11551155 
    11561156 
    1157 my $dimm_count=0; 
     1157my $dimm_count = 0; 
    11581158my @dimm_list; 
    11591159my $dir; 
     
    11681168 
    11691169for my $i ( 0 .. $#dimm_list ) { 
    1170         $_=$dimm_list[$i]; 
     1170        $_ = $dimm_list[$i]; 
    11711171        if (($use_sysfs && /^\d+-\d+$/) 
    11721172         || (!$use_sysfs && /^eeprom-/)) { 
     
    11871187                if (($use_sysfs && /^[^-]+-([^-]+)$/) 
    11881188                 || (!$use_sysfs && /^[^-]+-[^-]+-[^-]+-([^-]+)$/)) { 
    1189                         my $dimm_num=$1 - 49; 
     1189                        my $dimm_num = $1 - 49; 
    11901190                        printl "Guessing DIMM is in", "bank $dimm_num"; 
    11911191                }