diff options
author | Wayne Davison <wayned@samba.org> | 2003-07-07 07:08:24 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2003-07-07 07:08:24 +0000 |
commit | 16859cdbdcbf102f8573c5dc344f09b2817096bb (patch) | |
tree | e82c7819134cfc4c532306b2ea756804ebb3614b /wildtest.c | |
parent | fc96552d26e1d5960bcd85fcba4e1631ba15042d (diff) | |
download | rsync-16859cdbdcbf102f8573c5dc344f09b2817096bb.tar.gz |
Improved the summary output to use correct English for all counts.
Diffstat (limited to 'wildtest.c')
-rw-r--r-- | wildtest.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -139,15 +139,17 @@ main(int argc, char **argv) } if (!wildmatch_errors) - printf("No wildmatch errors found.\n"); + fputs("No", stdout); else - printf("Found %d wildmatch errors.\n", wildmatch_errors); + printf("%d", wildmatch_errors); + printf(" wildmatch error%s found.\n", wildmatch_errors == 1? "" : "s"); #ifdef COMPARE_WITH_FNMATCH if (!fnmatch_errors) - printf("No fnmatch errors found.\n"); + fputs("No", stdout); else - printf("Found %d fnmatch errors.\n", fnmatch_errors); + printf("%d", fnmatch_errors); + printf(" fnmatch error%s found.\n", fnmatch_errors == 1? "" : "s"); #endif |