Hardware/LPC/LPCIO.cs
changeset 166 fa9dfbfc4145
parent 165 813d8bc3192f
child 167 b7cc9d09aefe
     1.1 --- a/Hardware/LPC/LPCIO.cs	Sun Aug 08 13:57:26 2010 +0000
     1.2 +++ b/Hardware/LPC/LPCIO.cs	Thu Aug 12 20:53:27 2010 +0000
     1.3 @@ -37,6 +37,7 @@
     1.4  
     1.5  using System;
     1.6  using System.Collections.Generic;
     1.7 +using System.Globalization;
     1.8  using System.Text;
     1.9  using System.Threading;
    1.10  
    1.11 @@ -238,7 +239,8 @@
    1.12              WinbondFintekExit();
    1.13  
    1.14              report.Append("Chip ID: Unknown Winbond / Fintek with ID 0x");
    1.15 -            report.AppendLine(((id << 8) | revision).ToString("X"));
    1.16 +            report.AppendLine(((id << 8) | revision).ToString("X", 
    1.17 +              CultureInfo.InvariantCulture));
    1.18              report.AppendLine();
    1.19            }
    1.20          } else {
    1.21 @@ -256,7 +258,7 @@
    1.22              report.Append("Chip ID: 0x");
    1.23              report.AppendLine(chip.ToString("X"));
    1.24              report.Append("Chip revision: 0x");
    1.25 -            report.AppendLine(revision.ToString("X"));
    1.26 +            report.AppendLine(revision.ToString("X", CultureInfo.InvariantCulture));
    1.27              report.AppendLine("Error: Address verification failed");
    1.28              report.AppendLine();
    1.29              return;
    1.30 @@ -270,9 +272,9 @@
    1.31              report.Append("Chip ID: 0x");
    1.32              report.AppendLine(chip.ToString("X"));
    1.33              report.Append("Chip revision: 0x");
    1.34 -            report.AppendLine(revision.ToString("X"));
    1.35 +            report.AppendLine(revision.ToString("X", CultureInfo.InvariantCulture));
    1.36              report.Append("Error: Invalid address 0x");
    1.37 -            report.AppendLine(address.ToString("X"));
    1.38 +            report.AppendLine(address.ToString("X", CultureInfo.InvariantCulture));
    1.39              report.AppendLine();
    1.40              return;
    1.41            }
    1.42 @@ -298,9 +300,9 @@
    1.43                  report.Append("Chip ID: 0x");
    1.44                  report.AppendLine(chip.ToString("X"));
    1.45                  report.Append("Chip revision: 0x");
    1.46 -                report.AppendLine(revision.ToString("X"));
    1.47 +                report.AppendLine(revision.ToString("X", CultureInfo.InvariantCulture));
    1.48                  report.Append("Error: Invalid vendor ID 0x");
    1.49 -                report.AppendLine(vendorID.ToString("X"));
    1.50 +                report.AppendLine(vendorID.ToString("X", CultureInfo.InvariantCulture));
    1.51                  report.AppendLine();
    1.52                  return;
    1.53                }
    1.54 @@ -328,7 +330,7 @@
    1.55              IT87Exit();
    1.56  
    1.57              report.Append("Chip ID: Unknown ITE with ID 0x");
    1.58 -            report.AppendLine(chipID.ToString("X"));
    1.59 +            report.AppendLine(chipID.ToString("X", CultureInfo.InvariantCulture));
    1.60              report.AppendLine();
    1.61            }
    1.62          } else {
    1.63 @@ -345,7 +347,7 @@
    1.64              report.Append("Chip ID: 0x");
    1.65              report.AppendLine(chip.ToString("X"));
    1.66              report.Append("Error: Invalid address 0x");
    1.67 -            report.AppendLine(address.ToString("X"));
    1.68 +            report.AppendLine(address.ToString("X", CultureInfo.InvariantCulture));
    1.69              report.AppendLine();
    1.70              return;
    1.71            }
    1.72 @@ -366,7 +368,7 @@
    1.73              SMSCExit();
    1.74  
    1.75              report.Append("Chip ID: Unknown SMSC with ID 0x");
    1.76 -            report.AppendLine(chipID.ToString("X"));
    1.77 +            report.AppendLine(chipID.ToString("X", CultureInfo.InvariantCulture));
    1.78              report.AppendLine();
    1.79            }
    1.80          } else {