commit: 4d518efa8955097c86305e18730ccc0709845c72
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 1 14:03:41 2018 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Thu Mar 1 14:03:41 2018 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=4d518efa
scripts/rsync-generation/hashgen: make error messages more uniform
scripts/rsync-generation/hashgen.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/scripts/rsync-generation/hashgen.c
b/scripts/rsync-generation/hashgen.c
index 226daa74df..56abd691a3 100644
--- a/scripts/rsync-generation/hashgen.c
+++ b/scripts/rsync-generation/hashgen.c
@@ -1128,8 +1128,8 @@ verify_dir(
slash = strchr(entry, ' ');
if (slash != NULL)
*slash = '\0';
- fprintf(stderr, "%s: missing %s file:
%s\n",
- mfest, etpe == 'M' ?
"MANIFEST" : "DATA", entry);
+ printf("%s:%s:\n- %s file not found\n",
+ mfest, entry, etpe ==
'M' ? "MANIFEST" : "DATA");
if (slash != NULL)
*slash = ' ';
}
@@ -1137,7 +1137,7 @@ verify_dir(
} else if (cmp > 0) {
/* dir has extra element */
ret |= 1;
- fprintf(stderr, "%s: stray file not in
Manifest: %s\n",
+ printf("%s:\n- found excess file: %s\n",
mfest, dentries[curdentry]);
curdentry++;
}