X-Git-Url: http://git.efficios.com/?p=babeltrace.git;a=blobdiff_plain;f=converter%2Fbabeltrace-log.c;h=ac66a8b08d878e2be09548be0320d2a3bb0321fc;hp=53826c33ee32e12838e952ac680a5127c41fe985;hb=a4dfa07bd488d4dd77e558ad9e611415441183e7;hpb=300d317acaa3bd38afafe0a440946e6c73e6fd73 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,