X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=converter%2Fbabeltrace-log.c;h=ac66a8b08d878e2be09548be0320d2a3bb0321fc;hb=bf81a25e519f86c19ef33a7c2c9c33417f5e74a7;hp=53826c33ee32e12838e952ac680a5127c41fe985;hpb=3394d22e104e2f6511b656773ef4e74506842f3e;p=babeltrace.git diff --git a/converter/babeltrace-log.c b/converter/babeltrace-log.c index 53826c33..ac66a8b0 100644 --- a/converter/babeltrace-log.c +++ b/converter/babeltrace-log.c @@ -37,13 +37,10 @@ #include #include +#include #define USEC_PER_SEC 1000000UL -#ifndef UUID_STR_LEN -#define UUID_STR_LEN 37 /* With \0 */ -#endif - int babeltrace_debug, babeltrace_verbose; static char *s_outputname; @@ -90,14 +87,14 @@ static const char metadata_stream_event_header_timestamp[] = static void print_metadata(FILE *fp) { - char uuid_str[UUID_STR_LEN]; + char uuid_str[BABELTRACE_UUID_STR_LEN]; unsigned int major = 0, minor = 0; int ret; ret = sscanf(VERSION, "%u.%u", &major, &minor); if (ret != 2) fprintf(stderr, "[warning] Incorrect babeltrace version format\n."); - uuid_unparse(s_uuid, uuid_str); + babeltrace_uuid_unparse(s_uuid, uuid_str); fprintf(fp, metadata_fmt, major, minor,