1.1 --- a/Hardware/LPC/W836XX.cs Sun Aug 08 13:57:26 2010 +0000
1.2 +++ b/Hardware/LPC/W836XX.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
1.10 namespace OpenHardwareMonitor.Hardware.LPC {
1.11 @@ -291,8 +292,10 @@
1.12 r.AppendLine("LPC " + this.GetType().Name);
1.13 r.AppendLine();
1.14 r.Append("Chip ID: 0x"); r.AppendLine(chip.ToString("X"));
1.15 - r.Append("Chip revision: 0x"); r.AppendLine(revision.ToString("X"));
1.16 - r.Append("Base Adress: 0x"); r.AppendLine(address.ToString("X4"));
1.17 + r.Append("Chip revision: 0x");
1.18 + r.AppendLine(revision.ToString("X", CultureInfo.InvariantCulture));
1.19 + r.Append("Base Adress: 0x");
1.20 + r.AppendLine(address.ToString("X4", CultureInfo.InvariantCulture));
1.21 r.AppendLine();
1.22
1.23 if (!WinRing0.WaitIsaBusMutex(100))
1.24 @@ -303,21 +306,26 @@
1.25 r.AppendLine(" 00 01 02 03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F");
1.26 r.AppendLine();
1.27 for (int i = 0; i <= 0x7; i++) {
1.28 - r.Append(" "); r.Append((i << 4).ToString("X2")); r.Append(" ");
1.29 + r.Append(" ");
1.30 + r.Append((i << 4).ToString("X2", CultureInfo.InvariantCulture));
1.31 + r.Append(" ");
1.32 for (int j = 0; j <= 0xF; j++) {
1.33 r.Append(" ");
1.34 - r.Append(ReadByte(0, (byte)((i << 4) | j)).ToString("X2"));
1.35 + r.Append(ReadByte(0, (byte)((i << 4) | j)).ToString(
1.36 + "X2", CultureInfo.InvariantCulture));
1.37 }
1.38 r.AppendLine();
1.39 }
1.40 for (int k = 1; k <= 15; k++) {
1.41 r.AppendLine("Bank " + k);
1.42 for (int i = 0x5; i < 0x6; i++) {
1.43 - r.Append(" "); r.Append((i << 4).ToString("X2")); r.Append(" ");
1.44 + r.Append(" ");
1.45 + r.Append((i << 4).ToString("X2", CultureInfo.InvariantCulture));
1.46 + r.Append(" ");
1.47 for (int j = 0; j <= 0xF; j++) {
1.48 r.Append(" ");
1.49 - r.Append(ReadByte((byte)(k),
1.50 - (byte)((i << 4) | j)).ToString("X2"));
1.51 + r.Append(ReadByte((byte)(k), (byte)((i << 4) | j)).ToString(
1.52 + "X2", CultureInfo.InvariantCulture));
1.53 }
1.54 r.AppendLine();
1.55 }