+3540. [bug] libt_api: t_info and t_assert were not thread safe.
+
3539. [port] win32: timestamp format didn't match other platforms.
--- 9.9.3rc1 released ---
void
t_assert(const char *component, int anum, int class, const char *what, ...) {
va_list args;
+ char buf[T_BIGBUF];
(void)printf("T:%s:%d:%s\n", component, anum, class == T_REQUIRED ?
"A" : "C");
* Format text to a buffer.
*/
va_start(args, what);
- (void)vsnprintf(T_buf, sizeof(T_buf), what, args);
+ (void)vsnprintf(buf, sizeof(buf), what, args);
va_end(args);
- (void)t_putinfo("A", T_buf);
+ (void)t_putinfo("A", buf);
(void)printf("\n");
}
void
t_info(const char *format, ...) {
va_list args;
+ char buf[T_BIGBUF];
va_start(args, format);
- (void) vsnprintf(T_buf, sizeof(T_buf), format, args);
+ (void) vsnprintf(buf, sizeof(buf), format, args);
va_end(args);
- (void) t_putinfo("I", T_buf);
+ (void) t_putinfo("I", buf);
}
void