print_lookup_table_entry(): add FILE* parameter
[wimlib] / src / write.c
index 86730ff7fec7a1158b6ed8bed305ec784b9375aa..1f471d6fead32e046b969efa428b7abf1094b04e 100644 (file)
@@ -1353,8 +1353,10 @@ static int lte_overwrite_prepare(struct wim_lookup_table_entry *lte, void *arg)
            lte->wim == args->wim &&
            lte->resource_entry.offset + lte->resource_entry.size > args->end_offset)
        {
+       #ifdef ENABLE_ERROR_MESSAGES
                ERROR("The following resource is after the XML data:");
-               print_lookup_table_entry(lte);
+               print_lookup_table_entry(lte, stderr);
+       #endif
                return WIMLIB_ERR_RESOURCE_ORDER;
        }