From: Eric Biggers Date: Mon, 13 Jan 2014 20:15:57 +0000 (-0600) Subject: Simplify two warning messages X-Git-Tag: v1.6.1~54 X-Git-Url: https://wimlib.net/git/?p=wimlib;a=commitdiff_plain;h=39baf46ecec78f739ee9a68201f96fbdc917f62a;ds=sidebyside Simplify two warning messages --- diff --git a/src/inode_fixup.c b/src/inode_fixup.c index 5f203b7b..799f3ba2 100644 --- a/src/inode_fixup.c +++ b/src/inode_fixup.c @@ -441,7 +441,8 @@ dentry_tree_fix_inodes(struct wim_dentry *root, struct list_head *inode_list) if (ino_changes_needed) { u64 cur_ino = 1; - WARNING("Re-assigning inode numbers due to inode inconsistencies"); + WARNING("The WIM image contains invalid hard links. Fixing."); + list_for_each_entry(inode, inode_list, i_list) { if (inode->i_nlink > 1) inode->i_ino = cur_ino++; diff --git a/src/verify.c b/src/verify.c index 063834fb..2c0105bb 100644 --- a/src/verify.c +++ b/src/verify.c @@ -37,13 +37,6 @@ static int lte_fix_refcnt(struct wim_lookup_table_entry *lte, void *ctr) { if (lte->refcnt != lte->real_refcnt) { - if (wimlib_print_errors) { - WARNING("The following lookup table entry has a reference " - "count of %u, but", lte->refcnt); - WARNING("We found %u references to it", - lte->real_refcnt); - print_lookup_table_entry(lte, stderr); - } lte->refcnt = lte->real_refcnt; ++*(unsigned long *)ctr; } @@ -98,9 +91,7 @@ wim_recalculate_refcnts(WIMStruct *wim) for_lookup_table_entry(wim->lookup_table, lte_fix_refcnt, &num_ltes_with_bogus_refcnt); if (num_ltes_with_bogus_refcnt != 0) { - WARNING("A total of %lu entries in the WIM's stream " - "lookup table had to have\n" - " their reference counts fixed.", + WARNING("%lu stream(s) had incorrect reference count.", num_ltes_with_bogus_refcnt); } wim->refcnts_ok = 1;