Diff for libplaton/platon/cpu/x86cpuid.c between version 1.4 and 1.5
| version 1.4, 2002/09/29 03:55:01 |
version 1.5, 2010/04/24 10:20:20 |
| Line 28 char *x86cpuid(void) |
|
| Line 28 char *x86cpuid(void) |
|
| str = (char *) malloc(sizeof(char) * (3 * 4 + 2 * 9 + 1)); |
str = (char *) malloc(sizeof(char) * (3 * 4 + 2 * 9 + 1)); |
| |
|
| #if DEBUG |
#if DEBUG |
| fprintf(stderr, "get_x86cpuid(): %d bytes allocated using malloc()\n", |
fprintf(stderr, "%s(): %d bytes allocated using malloc()\n", |
| (3 * 4 + 2 * 9 + 1)); |
__FUNCTION__, (3 * 4 + 2 * 9 + 1)); |
| #endif |
#endif |
| |
|
| if (str != NULL) { |
if (str != NULL) { |
| Line 50 char *x86cpuid(void) |
|
| Line 50 char *x86cpuid(void) |
|
| sprintf(str + k, "-%08lx-%08lx", y[0], y[3]); |
sprintf(str + k, "-%08lx-%08lx", y[0], y[3]); |
| |
|
| #if DEBUG |
#if DEBUG |
| fprintf(stderr, "get_x86cpuid(): real string size: %d\n", strlen(str)); |
fprintf(stderr, "%s(): real string size: %d\n", __FUNCTION__, strlen(str)); |
| #endif |
#endif |
| } |
} |
| |
|
Platon Group <platon@platon.org> http://platon.org/
|
|