Merge branch 'ew/repack-with-bitmaps-by-default'
[gitweb.git] / trace2 / tr2_tgt_event.c
index 48d9193b2cf2831d6d1902ad2c9c9fae851ba291..c2852d1bd2bd856d518b5ce499d38e7b13bb452c 100644 (file)
@@ -94,7 +94,7 @@ static void event_fmt_prepare(const char *event_name, const char *file,
         */
        if (!tr2env_event_be_brief || !strcmp(event_name, "version") ||
            !strcmp(event_name, "atexit")) {
-               tr2_tbuf_utc_time(&tb_now);
+               tr2_tbuf_utc_datetime_extended(&tb_now);
                jw_object_string(jw, "time", tb_now.buf);
        }
 
@@ -193,7 +193,7 @@ static void fn_atexit(uint64_t us_elapsed_absolute, int code)
 static void maybe_add_string_va(struct json_writer *jw, const char *field_name,
                                const char *fmt, va_list ap)
 {
-       if (fmt && *fmt && ap) {
+       if (fmt && *fmt) {
                va_list copy_ap;
                struct strbuf buf = STRBUF_INIT;