summaryrefslogtreecommitdiffstats
path: root/bin/guards.in
diff options
context:
space:
mode:
Diffstat (limited to 'bin/guards.in')
-rw-r--r--bin/guards.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/bin/guards.in b/bin/guards.in
index 529cf52..67b84ff 100644
--- a/bin/guards.in
+++ b/bin/guards.in
@@ -181,11 +181,17 @@ if ($check) {
next if $ref == 1;
if ($ref == 0) {
- print "Unused: $file\n" if $ref == 0;
+ if ($config eq '-') {
+ print "Unused: $file\n";
+ } else {
+ print "Not in $config: $file\n";
+ }
$problems++;
}
if ($ref > 1) {
- print "Warning: multiple uses: $file\n" if $ref > 1;
+ print "Warning: multiple uses";
+ print " in $config" if $config ne '-';
+ print ": $file\n";
# This is not an error if the entries are mutually exclusive...
}
}