diff options
author | Matt Kraai <kraai@debian.org> | 2000-12-18 03:08:29 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-12-18 03:08:29 +0000 |
commit | 0dab82997777bffb95d01d68e1628ee79207a03d (patch) | |
tree | cd56722ced55fd4b08049a0717cbbb9df5e9113f /coreutils | |
parent | bfa7967c4a18c9a7addbe853cf9f736ac34b4e5b (diff) | |
download | busybox-0dab82997777bffb95d01d68e1628ee79207a03d.tar.gz |
Add missing newlines to error messages.
Diffstat (limited to 'coreutils')
-rw-r--r-- | coreutils/cut.c | 7 | ||||
-rw-r--r-- | coreutils/touch.c | 4 |
2 files changed, 6 insertions, 5 deletions
diff --git a/coreutils/cut.c b/coreutils/cut.c index 6e0fe83fc..8b319962d 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c @@ -188,7 +188,7 @@ extern int cut_main(int argc, char **argv) case 'f': /* make sure they didn't ask for two types of lists */ if (part != 0) { - error_msg_and_die("only one type of list may be specified"); + error_msg_and_die("only one type of list may be specified\n"); } part = (char)opt; decompose_list(optarg); @@ -213,8 +213,9 @@ extern int cut_main(int argc, char **argv) } if (supress_non_delimited_lines && part != 'f') { - error_msg_and_die("suppressing non-delimited lines makes sense - only when operating on fields\n"); + error_msg_and_die("suppressing non-delimited lines makes sense" + " only when operating on fields\n"); + } if (delim != '\t' && part != 'f') { diff --git a/coreutils/touch.c b/coreutils/touch.c index 59800b2a0..1b03075e8 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c @@ -58,12 +58,12 @@ extern int touch_main(int argc, char **argv) if (create == FALSE && errno == ENOENT) return EXIT_SUCCESS; else { - error_msg_and_die("%s", strerror(errno)); + perror_msg_and_die("%s", *argv); } } close(fd); if (utime(*argv, NULL)) { - error_msg_and_die("%s", strerror(errno)); + perror_msg_and_die("%s", *argv); } argc--; argv++; |