Fix several error messages
diff --git a/options.c b/options.c
index b9472a8..87dddb0 100644
--- a/options.c
+++ b/options.c
@@ -52,7 +52,7 @@
static void
err_usage(void) {
- fprintf(stderr, "Try `%s --help' for more information\n", progname);
+ fprintf(stderr, "Try `%s --help' for more information.\n", progname);
exit(1);
}
@@ -127,7 +127,7 @@
m = n = strlen(path);
}
if (n + strlen(filename) + 1 >= PATH_MAX) {
- fprintf(stderr, "Error: filename too long\n");
+ fprintf(stderr, "Error: filename too long.\n");
exit(1);
}
strncpy(pathname, path, n);
@@ -173,7 +173,7 @@
struct filter_lib_matcher *matcher = malloc(sizeof(*matcher));
if (rule == NULL || matcher == NULL) {
- fprintf(stderr, "rule near '%s' will be ignored: %s\n",
+ fprintf(stderr, "Rule near '%s' will be ignored: %s.\n",
expr, strerror(errno));
fail:
free(rule);
@@ -193,7 +193,7 @@
if (status != 0) {
char buf[100];
regerror(status, &symbol_re, buf, sizeof buf);
- fprintf(stderr, "rule near '%s' will be ignored: %s\n",
+ fprintf(stderr, "Rule near '%s' will be ignored: %s.\n",
expr, buf);
goto fail;
}
@@ -301,8 +301,8 @@
/* /XXX@YYY/ is the same as
* /XXX/@/YYY/. */
if (libend[0] != '/')
- fprintf(stderr, "unmatched '/'"
- " in symbol name\n");
+ fprintf(stderr, "Unmatched '/'"
+ " in symbol name.\n");
else
*libend-- = 0;
}
@@ -339,7 +339,7 @@
{
struct filter *filt = malloc(sizeof(*filt));
if (filt == NULL) {
- fprintf(stderr, "(part of) filter will be ignored: '%s': %s\n",
+ fprintf(stderr, "(Part of) filter will be ignored: '%s': %s.\n",
expr, strerror(errno));
return NULL;
}
@@ -359,7 +359,7 @@
{
char *str = strdup(expr);
if (str == NULL) {
- fprintf(stderr, "filter '%s' will be ignored: %s\n",
+ fprintf(stderr, "Filter '%s' will be ignored: %s.\n",
expr, strerror(errno));
return;
}
@@ -598,7 +598,8 @@
err_usage();
}
if (opt_r && opt_t) {
- fprintf(stderr, "%s: Incompatible options -r and -t\n",
+ fprintf(stderr,
+ "%s: Options -r and -t can't be used together\n",
progname);
err_usage();
}