mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-01-21 08:34:29 +08:00
ID:287 - Fix print-out of DDR3 SDRAM Serial Number
Commit fixes print-out of DDR3 SDRAM Serial Number. This was caused by printing out more bytes/chars and some weird pointer tricks.
This commit is contained in:
parent
b44366e92d
commit
ebe6b0ce48
@ -1344,7 +1344,6 @@ ipmi_spd_print(uint8_t *spd_data, int len)
|
||||
if (spd_data[2] == 0x0B) /* DDR3 SDRAM */
|
||||
{
|
||||
int iPN;
|
||||
char *pchPN = spd_data+128;
|
||||
int sdram_cap = 0;
|
||||
int pri_bus_width = 0;
|
||||
int sdram_width = 0;
|
||||
@ -1424,9 +1423,8 @@ ipmi_spd_print(uint8_t *spd_data, int len)
|
||||
spd_data[122], spd_data[123], spd_data[124], spd_data[125]);
|
||||
|
||||
printf(" Part Number : ");
|
||||
for (iPN=0; iPN < 19; iPN++)
|
||||
{
|
||||
printf( "%c", *pchPN++ );
|
||||
for (iPN = 128; iPN < 146; iPN++) {
|
||||
printf("%c", spd_data[iPN]);
|
||||
}
|
||||
printf("\n");
|
||||
} else if (spd_data[2] == 0x0C) /* DDR4 SDRAM */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user