X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fprofile.h;h=3704b449e6294e4d0599f0529c5cd44f1a620f74;hb=e371dcc1cd2857036374dd9597705faed0427006;hp=7d8d1312c5b09b314f22bb86e06e8023dab55427;hpb=55cd09aa6732fb2e6cd123bd81993351e34cb4d1;p=libucw.git diff --git a/lib/profile.h b/lib/profile.h index 7d8d1312..3704b449 100644 --- a/lib/profile.h +++ b/lib/profile.h @@ -1,7 +1,10 @@ /* - * Sherlock Library -- Poor Man's Profiler + * UCW Library -- Poor Man's Profiler * * (c) 2001 Martin Mares + * + * This software may be freely distributed and used according to the terms + * of the GNU Lesser General Public License. */ /* @@ -14,7 +17,7 @@ * prof_start(&cnt); * ... * prof_stop(&cnt); - * printf("%s\n", PROF_STRING(&cnt)); + * printf("%s\n", PROF_STR(cnt)); */ /* PROFILE_TOD: gettimeofday() profiler */ @@ -120,7 +123,7 @@ typedef struct prof_ktsc prof_t; static inline void prof_start(prof_t *c) { prof_switch(NULL, c); } static inline void prof_stop(prof_t *c) { prof_switch(c, NULL); } #endif -#define PROF_STR(C) ({ static byte _x[PROF_STR_SIZE]; prof_format(_x, &(C)); _x; }) +#define PROF_STR(C) ({ static char _x[PROF_STR_SIZE]; prof_format(_x, &(C)); _x; }) #else