projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ustd: tell buffer name in some debug messages
[ust.git]
/
libust
/
serialize.c
diff --git
a/libust/serialize.c
b/libust/serialize.c
index 7f9ce5ad44f2a4f80cd77c68ca593fe0096120c8..8f393ed074d08ad98836db24e39ae729cd0f0122 100644
(file)
--- a/
libust/serialize.c
+++ b/
libust/serialize.c
@@
-41,6
+41,7
@@
#include "tracer.h"
//#include "list.h"
#include "usterr.h"
#include "tracer.h"
//#include "list.h"
#include "usterr.h"
+#include "ust_snprintf.h"
enum ltt_type {
LTT_TYPE_SIGNED_INT,
enum ltt_type {
LTT_TYPE_SIGNED_INT,
@@
-537,7
+538,7
@@
notrace size_t ltt_serialize_data(struct ust_buffer *buf, size_t buf_offset,
++fmt; /* skip first '%' */
if (*fmt == '%') /* Escaped %% */
break;
++fmt; /* skip first '%' */
if (*fmt == '%') /* Escaped %% */
break;
- fmt = parse_c_type(fmt, &c_size, &c_type);
+ fmt = parse_c_type(fmt, &c_size, &c_type
, NULL
);
/*
* Output c types if no trace types has been
* specified.
/*
* Output c types if no trace types has been
* specified.
@@
-808,7
+809,7
@@
int serialize_to_text(char *outbuf, int bufsize, const char *fmt, va_list ap)
outbuf = &false_buf;
bufsize = 1;
}
outbuf = &false_buf;
bufsize = 1;
}
- result = vsnprintf(outbuf, bufsize, new_fmt, ap);
+ result =
ust_safe_
vsnprintf(outbuf, bufsize, new_fmt, ap);
return result;
}
return result;
}
This page took
0.024372 seconds
and
4
git commands to generate.