#endif /* !__WIN32__ */
-static inline int
-dummy_tprintf(const tchar *format, ...) _format_attribute(printf, 1, 2)
+static inline int _format_attribute(printf, 1, 2)
+dummy_tprintf(const tchar *format, ...)
{
return 0;
}
if (ret) {
errno = ret;
ret = WIMLIB_ERR_NOMEM;
- WARNING_WITH_ERRNO("Failed to create compressor thread %u of %u");
+ WARNING_WITH_ERRNO("Failed to create compressor thread %u of %u",
+ ctx->num_started_threads + 1,
+ num_threads);
goto err;
}
}
if (hdr->wim_version != WIM_VERSION_DEFAULT &&
hdr->wim_version != WIM_VERSION_PACKED_STREAMS)
{
- ERROR("\"%"TS"\": Unknown WIM version: %u", hdr->wim_version);
+ ERROR("\"%"TS"\": Unknown WIM version: %u",
+ filename, hdr->wim_version);
return WIMLIB_ERR_UNKNOWN_VERSION;
}
size_t xml_len;
DEBUG("Writing WIM XML data (image=%d, offset=%"PRIu64")",
- image, total_bytes, wim->out_fd.offset);
+ image, wim->out_fd.offset);
ret = prepare_wim_xml_data(wim, image, total_bytes,
&xml_data, &xml_len);