NOT_REACHED ();
}
}
- output_log ("%s", ds_cstr (&s));
- ds_destroy (&s);
+ output_log_nocopy (ds_steal_cstr (&s));
}
if (end > output && end[-1] == '\n')
end[-1] = '\0';
- output_log ("%s", output);
- free (output);
+ output_log_nocopy (output);
}
free (locale_output);
char *s = xvasprintf (format, args);
va_end (args);
+ output_log_nocopy (s);
+}
+
+void
+output_log_nocopy (char *s)
+{
output_submit (text_item_create_nocopy (TEXT_ITEM_LOG, s, NULL));
}
void output_flush (void);
void output_log (const char *, ...) PRINTF_FORMAT (1, 2);
+void output_log_nocopy (char *);
const char *output_get_title (void);
void output_set_title (const char *);