mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-27 13:40:22 +00:00
Add missing newlines to error messages.
This commit is contained in:
parent
bfa7967c4a
commit
0dab829977
@ -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') {
|
||||
|
@ -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++;
|
||||
|
7
cut.c
7
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') {
|
||||
|
8
lsmod.c
8
lsmod.c
@ -83,7 +83,7 @@ extern int lsmod_main(int argc, char **argv)
|
||||
module_names = xmalloc(bufsize = 256);
|
||||
deps = xmalloc(bufsize);
|
||||
if (query_module(NULL, QM_MODULES, module_names, bufsize, &nmod)) {
|
||||
error_msg_and_die("QM_MODULES: %s\n", strerror(errno));
|
||||
perror_msg_and_die("QM_MODULES");
|
||||
}
|
||||
|
||||
printf("Module Size Used by\n");
|
||||
@ -94,7 +94,7 @@ extern int lsmod_main(int argc, char **argv)
|
||||
continue;
|
||||
}
|
||||
/* else choke */
|
||||
error_msg_and_die("module %s: QM_INFO: %s\n", mn, strerror(errno));
|
||||
perror_msg_and_die("module %s: QM_INFO", mn);
|
||||
}
|
||||
while (query_module(mn, QM_REFS, deps, bufsize, &count)) {
|
||||
if (errno == ENOENT) {
|
||||
@ -102,7 +102,7 @@ extern int lsmod_main(int argc, char **argv)
|
||||
continue;
|
||||
}
|
||||
if (errno != ENOSPC) {
|
||||
error_msg_and_die("module %s: QM_REFS: %s", mn, strerror(errno));
|
||||
error_msg_and_die("module %s: QM_REFS", mn);
|
||||
}
|
||||
deps = xrealloc(deps, bufsize = count);
|
||||
}
|
||||
@ -153,7 +153,7 @@ extern int lsmod_main(int argc, char **argv)
|
||||
close(fd);
|
||||
return 0;
|
||||
}
|
||||
error_msg_and_die("/proc/modules: %s\n", strerror(errno));
|
||||
perror_msg_and_die("/proc/modules");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -83,7 +83,7 @@ extern int lsmod_main(int argc, char **argv)
|
||||
module_names = xmalloc(bufsize = 256);
|
||||
deps = xmalloc(bufsize);
|
||||
if (query_module(NULL, QM_MODULES, module_names, bufsize, &nmod)) {
|
||||
error_msg_and_die("QM_MODULES: %s\n", strerror(errno));
|
||||
perror_msg_and_die("QM_MODULES");
|
||||
}
|
||||
|
||||
printf("Module Size Used by\n");
|
||||
@ -94,7 +94,7 @@ extern int lsmod_main(int argc, char **argv)
|
||||
continue;
|
||||
}
|
||||
/* else choke */
|
||||
error_msg_and_die("module %s: QM_INFO: %s\n", mn, strerror(errno));
|
||||
perror_msg_and_die("module %s: QM_INFO", mn);
|
||||
}
|
||||
while (query_module(mn, QM_REFS, deps, bufsize, &count)) {
|
||||
if (errno == ENOENT) {
|
||||
@ -102,7 +102,7 @@ extern int lsmod_main(int argc, char **argv)
|
||||
continue;
|
||||
}
|
||||
if (errno != ENOSPC) {
|
||||
error_msg_and_die("module %s: QM_REFS: %s", mn, strerror(errno));
|
||||
error_msg_and_die("module %s: QM_REFS", mn);
|
||||
}
|
||||
deps = xrealloc(deps, bufsize = count);
|
||||
}
|
||||
@ -153,7 +153,7 @@ extern int lsmod_main(int argc, char **argv)
|
||||
close(fd);
|
||||
return 0;
|
||||
}
|
||||
error_msg_and_die("/proc/modules: %s\n", strerror(errno));
|
||||
perror_msg_and_die("/proc/modules");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
@ -159,7 +159,7 @@ int wget_main(int argc, char **argv)
|
||||
*/
|
||||
if (do_continue) {
|
||||
if (fstat(fileno(output), &sbuf) < 0)
|
||||
error_msg_and_die("fstat()");
|
||||
perror_msg_and_die("fstat()");
|
||||
if (sbuf.st_size > 0)
|
||||
beg_range = sbuf.st_size;
|
||||
else
|
||||
@ -514,7 +514,7 @@ progressmeter(int flag)
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: wget.c,v 1.13 2000/12/09 16:55:35 andersen Exp $
|
||||
* $Id: wget.c,v 1.14 2000/12/18 03:08:29 kraai Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
4
touch.c
4
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++;
|
||||
|
@ -1470,7 +1470,7 @@ extern char * xstrndup (const char *s, int n) {
|
||||
char *t;
|
||||
|
||||
if (s == NULL)
|
||||
error_msg_and_die("xstrndup bug");
|
||||
error_msg_and_die("xstrndup bug\n");
|
||||
|
||||
t = xmalloc(n+1);
|
||||
strncpy(t,s,n);
|
||||
|
4
wget.c
4
wget.c
@ -159,7 +159,7 @@ int wget_main(int argc, char **argv)
|
||||
*/
|
||||
if (do_continue) {
|
||||
if (fstat(fileno(output), &sbuf) < 0)
|
||||
error_msg_and_die("fstat()");
|
||||
perror_msg_and_die("fstat()");
|
||||
if (sbuf.st_size > 0)
|
||||
beg_range = sbuf.st_size;
|
||||
else
|
||||
@ -514,7 +514,7 @@ progressmeter(int flag)
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: wget.c,v 1.13 2000/12/09 16:55:35 andersen Exp $
|
||||
* $Id: wget.c,v 1.14 2000/12/18 03:08:29 kraai Exp $
|
||||
*/
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user