X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fprofile.h;h=3704b449e6294e4d0599f0529c5cd44f1a620f74;hb=e371dcc1cd2857036374dd9597705faed0427006;hp=1d38251969485491a5c2d4c3d67dd20884901dc0;hpb=49ed04e2e93a6a5b01058638224621d5c07db01c;p=libucw.git diff --git a/lib/profile.h b/lib/profile.h index 1d382519..3704b449 100644 --- a/lib/profile.h +++ b/lib/profile.h @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Poor Man's Profiler + * UCW Library -- Poor Man's Profiler * * (c) 2001 Martin Mares * @@ -17,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 */ @@ -123,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