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