Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

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
         }          }
   

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top