]> mj.ucw.cz Git - libucw.git/blobdiff - lib/profile.h
Merge with git+ssh://git.ucw.cz/projects/sherlock/GIT/sherlock.git
[libucw.git] / lib / profile.h
index 7d8d1312c5b09b314f22bb86e06e8023dab55427..3704b449e6294e4d0599f0529c5cd44f1a620f74 100644 (file)
@@ -1,7 +1,10 @@
 /*
- *     Sherlock Library -- Poor Man's Profiler
+ *     UCW Library -- Poor Man's Profiler
  *
  *     (c) 2001 Martin Mares <mj@ucw.cz>
+ *
+ *     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