Chameleon

Chameleon Commit Details

Date:2010-08-07 02:46:50 (13 years 8 months ago)
Author:Azimutz
Commit:320
Parents: 319
Message:SPD, PartNumber: i get extra characters, if i don't do it this way.
Changes:
M/branches/azimutz/CleanCut/i386/libsaio/spd.c

File differences

branches/azimutz/CleanCut/i386/libsaio/spd.c
231231
232232
233233
234
234
235235
236236
237237
......
325325
326326
327327
328
328
329329
330330
331331
c = spd[i];
if (isalpha(c) || isdigit(c) || ispunct(c)) // It seems that System Profiler likes only letters and digits...
asciiPartNo[index++] = c;
else if (!isascii(c))
if (isspace(c)) //Azi: this is the way that works properly for me!! The other gives me extra characters.
break;
}
slot->Frequency,
slot->Vendor,
slot->PartNo,
slot->SerialNo);
slot->SerialNo);
if(DEBUG_SPD) {
dumpPhysAddr("spd content: ",slot->spd, spd_size);
getc();

Archive Download the corresponding diff file

Revision: 320