Skip to content

Commit 796bf59

Browse files
committed
Make TIFF error/warning log line consistent with dt_print (add timestamp)
1 parent 8d1ccdb commit 796bf59

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/imageio/imageio_tiff.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,13 @@ static void _warning_error_handler(const char *type,
337337
const char* fmt,
338338
va_list ap)
339339
{
340-
fprintf(stderr, "[tiff_open] %s: %s: ", type, module);
340+
// We prepend the wall time from the program start to output line
341+
// to be consistent with dt_print
342+
fprintf(stderr,
343+
"%11.4f [tiff_open] %s: %s: ",
344+
dt_get_wtime() - darktable.start_wtime,
345+
type,
346+
module);
341347
vfprintf(stderr, fmt, ap);
342348
fprintf(stderr, "\n");
343349
}

0 commit comments

Comments
 (0)