aboutsummaryrefslogtreecommitdiff
path: root/options.c
diff options
context:
space:
mode:
authorPetr Machata <pmachata@redhat.com>2012-09-25 22:45:26 +0200
committerPetr Machata <pmachata@redhat.com>2012-09-25 22:45:26 +0200
commit20a411d376ae951d8ef5a47aca36644458f2e14a (patch)
treee027a3e2bc7259a53e0eec5dbfa478e640e82800 /options.c
parent49d3d52e19692f92cf2114b053053c549a723b79 (diff)
downloadltrace-20a411d376ae951d8ef5a47aca36644458f2e14a.tar.gz
Fix several error messages
Diffstat (limited to 'options.c')
-rw-r--r--options.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/options.c b/options.c
index b9472a8..87dddb0 100644
--- a/options.c
+++ b/options.c
@@ -52,7 +52,7 @@ struct opt_F_t *opt_F = NULL; /* alternate configuration file(s) */
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 @@ search_for_command(char *filename) {
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 @@ add_filter_rule(struct filter *filt, const char *expr,
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 @@ add_filter_rule(struct filter *filt, const char *expr,
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 @@ parse_filter(struct filter *filt, char *expr)
/* /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 @@ recursive_parse_chain(char *expr)
{
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 @@ parse_filter_chain(const char *expr, struct filter **retp)
{
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 @@ process_options(int argc, char **argv)
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();
}