aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-10-23 18:03:46 +0000
committerMatt Kraai <kraai@debian.org>2000-10-23 18:03:46 +0000
commit207061ac0d400f663dc411c132d7fc07dca7d496 (patch)
tree4d50f76923e65e6247dc399f20b37c5c1bc79487
parent2be4797a06849cf5c9c4f97e1489d70b7fc8be36 (diff)
downloadbusybox-w32-207061ac0d400f663dc411c132d7fc07dca7d496.tar.gz
busybox-w32-207061ac0d400f663dc411c132d7fc07dca7d496.tar.bz2
busybox-w32-207061ac0d400f663dc411c132d7fc07dca7d496.zip
Fix error messages.
-rw-r--r--archival/gunzip.c8
-rw-r--r--archival/gzip.c8
-rw-r--r--coreutils/md5sum.c6
-rw-r--r--gunzip.c8
-rw-r--r--gzip.c8
-rw-r--r--insmod.c24
-rw-r--r--md5sum.c6
-rw-r--r--modutils/insmod.c24
8 files changed, 46 insertions, 46 deletions
diff --git a/archival/gunzip.c b/archival/gunzip.c
index 7a360a6ea..0c9d40670 100644
--- a/archival/gunzip.c
+++ b/archival/gunzip.c
@@ -1120,11 +1120,11 @@ int in, out; /* input and output file descriptors */
1120 if (res == 3) { 1120 if (res == 3) {
1121 errorMsg(memory_exhausted); 1121 errorMsg(memory_exhausted);
1122 } else if (res != 0) { 1122 } else if (res != 0) {
1123 errorMsg("invalid compressed data--format violated"); 1123 errorMsg("invalid compressed data--format violated\n");
1124 } 1124 }
1125 1125
1126 } else { 1126 } else {
1127 errorMsg("internal error, invalid method"); 1127 errorMsg("internal error, invalid method\n");
1128 } 1128 }
1129 1129
1130 /* Get the crc and original length */ 1130 /* Get the crc and original length */
@@ -1153,10 +1153,10 @@ int in, out; /* input and output file descriptors */
1153 1153
1154 /* Validate decompression */ 1154 /* Validate decompression */
1155 if (orig_crc != updcrc(outbuf, 0)) { 1155 if (orig_crc != updcrc(outbuf, 0)) {
1156 errorMsg("invalid compressed data--crc error"); 1156 errorMsg("invalid compressed data--crc error\n");
1157 } 1157 }
1158 if (orig_len != (ulg) bytes_out) { 1158 if (orig_len != (ulg) bytes_out) {
1159 errorMsg("invalid compressed data--length error"); 1159 errorMsg("invalid compressed data--length error\n");
1160 } 1160 }
1161 1161
1162 /* Check if there are more entries in a pkzip file */ 1162 /* Check if there are more entries in a pkzip file */
diff --git a/archival/gzip.c b/archival/gzip.c
index e518ffd16..6b25e47df 100644
--- a/archival/gzip.c
+++ b/archival/gzip.c
@@ -1381,7 +1381,7 @@ int length;
1381 (char *) window + start, length) != EQUAL) { 1381 (char *) window + start, length) != EQUAL) {
1382 fprintf(stderr, 1382 fprintf(stderr,
1383 " start %d, match %d, length %d\n", start, match, length); 1383 " start %d, match %d, length %d\n", start, match, length);
1384 errorMsg("invalid match"); 1384 errorMsg("invalid match\n");
1385 } 1385 }
1386 if (verbose > 1) { 1386 if (verbose > 1) {
1387 fprintf(stderr, "\\[%d,%d]", start - match, length); 1387 fprintf(stderr, "\\[%d,%d]", start - match, length);
@@ -2911,7 +2911,7 @@ int eof; /* true if this is the last block for a file */
2911#endif 2911#endif
2912 /* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */ 2912 /* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */
2913 if (buf == (char *) 0) 2913 if (buf == (char *) 0)
2914 errorMsg("block vanished"); 2914 errorMsg("block vanished\n");
2915 2915
2916 copy_block(buf, (unsigned) stored_len, 0); /* without header */ 2916 copy_block(buf, (unsigned) stored_len, 0); /* without header */
2917 compressed_len = stored_len << 3; 2917 compressed_len = stored_len << 3;
@@ -3094,7 +3094,7 @@ local void set_file_type()
3094 bin_freq += dyn_ltree[n++].Freq; 3094 bin_freq += dyn_ltree[n++].Freq;
3095 *file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII; 3095 *file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII;
3096 if (*file_type == BINARY && translate_eol) { 3096 if (*file_type == BINARY && translate_eol) {
3097 errorMsg("-l used on binary file"); 3097 errorMsg("-l used on binary file\n");
3098 } 3098 }
3099} 3099}
3100 3100
@@ -3256,7 +3256,7 @@ char *env; /* name of environment variable */
3256 3256
3257 /* Copy the program name first */ 3257 /* Copy the program name first */
3258 if (oargc-- < 0) 3258 if (oargc-- < 0)
3259 errorMsg("argc<=0"); 3259 errorMsg("argc<=0\n");
3260 *(nargv++) = *(oargv++); 3260 *(nargv++) = *(oargv++);
3261 3261
3262 /* Then copy the environment args */ 3262 /* Then copy the environment args */
diff --git a/coreutils/md5sum.c b/coreutils/md5sum.c
index c7e540223..21570de93 100644
--- a/coreutils/md5sum.c
+++ b/coreutils/md5sum.c
@@ -810,7 +810,7 @@ static int md5_check(const char *checkfile_name)
810 free(line); 810 free(line);
811 811
812 if (ferror(checkfile_stream)) { 812 if (ferror(checkfile_stream)) {
813 errorMsg("%s: read error", checkfile_name); /* */ 813 errorMsg("%s: read error\n", checkfile_name); /* */
814 return FALSE; 814 return FALSE;
815 } 815 }
816 816
@@ -991,12 +991,12 @@ int md5sum_main(int argc,
991 } 991 }
992 992
993 if (fclose (stdout) == EOF) { 993 if (fclose (stdout) == EOF) {
994 errorMsg("write error"); 994 errorMsg("write error\n");
995 exit FALSE; 995 exit FALSE;
996 } 996 }
997 997
998 if (have_read_stdin && fclose (stdin) == EOF) { 998 if (have_read_stdin && fclose (stdin) == EOF) {
999 errorMsg("standard input"); 999 errorMsg("standard input\n");
1000 exit FALSE; 1000 exit FALSE;
1001 } 1001 }
1002 1002
diff --git a/gunzip.c b/gunzip.c
index 7a360a6ea..0c9d40670 100644
--- a/gunzip.c
+++ b/gunzip.c
@@ -1120,11 +1120,11 @@ int in, out; /* input and output file descriptors */
1120 if (res == 3) { 1120 if (res == 3) {
1121 errorMsg(memory_exhausted); 1121 errorMsg(memory_exhausted);
1122 } else if (res != 0) { 1122 } else if (res != 0) {
1123 errorMsg("invalid compressed data--format violated"); 1123 errorMsg("invalid compressed data--format violated\n");
1124 } 1124 }
1125 1125
1126 } else { 1126 } else {
1127 errorMsg("internal error, invalid method"); 1127 errorMsg("internal error, invalid method\n");
1128 } 1128 }
1129 1129
1130 /* Get the crc and original length */ 1130 /* Get the crc and original length */
@@ -1153,10 +1153,10 @@ int in, out; /* input and output file descriptors */
1153 1153
1154 /* Validate decompression */ 1154 /* Validate decompression */
1155 if (orig_crc != updcrc(outbuf, 0)) { 1155 if (orig_crc != updcrc(outbuf, 0)) {
1156 errorMsg("invalid compressed data--crc error"); 1156 errorMsg("invalid compressed data--crc error\n");
1157 } 1157 }
1158 if (orig_len != (ulg) bytes_out) { 1158 if (orig_len != (ulg) bytes_out) {
1159 errorMsg("invalid compressed data--length error"); 1159 errorMsg("invalid compressed data--length error\n");
1160 } 1160 }
1161 1161
1162 /* Check if there are more entries in a pkzip file */ 1162 /* Check if there are more entries in a pkzip file */
diff --git a/gzip.c b/gzip.c
index e518ffd16..6b25e47df 100644
--- a/gzip.c
+++ b/gzip.c
@@ -1381,7 +1381,7 @@ int length;
1381 (char *) window + start, length) != EQUAL) { 1381 (char *) window + start, length) != EQUAL) {
1382 fprintf(stderr, 1382 fprintf(stderr,
1383 " start %d, match %d, length %d\n", start, match, length); 1383 " start %d, match %d, length %d\n", start, match, length);
1384 errorMsg("invalid match"); 1384 errorMsg("invalid match\n");
1385 } 1385 }
1386 if (verbose > 1) { 1386 if (verbose > 1) {
1387 fprintf(stderr, "\\[%d,%d]", start - match, length); 1387 fprintf(stderr, "\\[%d,%d]", start - match, length);
@@ -2911,7 +2911,7 @@ int eof; /* true if this is the last block for a file */
2911#endif 2911#endif
2912 /* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */ 2912 /* Since LIT_BUFSIZE <= 2*WSIZE, the input data must be there: */
2913 if (buf == (char *) 0) 2913 if (buf == (char *) 0)
2914 errorMsg("block vanished"); 2914 errorMsg("block vanished\n");
2915 2915
2916 copy_block(buf, (unsigned) stored_len, 0); /* without header */ 2916 copy_block(buf, (unsigned) stored_len, 0); /* without header */
2917 compressed_len = stored_len << 3; 2917 compressed_len = stored_len << 3;
@@ -3094,7 +3094,7 @@ local void set_file_type()
3094 bin_freq += dyn_ltree[n++].Freq; 3094 bin_freq += dyn_ltree[n++].Freq;
3095 *file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII; 3095 *file_type = bin_freq > (ascii_freq >> 2) ? BINARY : ASCII;
3096 if (*file_type == BINARY && translate_eol) { 3096 if (*file_type == BINARY && translate_eol) {
3097 errorMsg("-l used on binary file"); 3097 errorMsg("-l used on binary file\n");
3098 } 3098 }
3099} 3099}
3100 3100
@@ -3256,7 +3256,7 @@ char *env; /* name of environment variable */
3256 3256
3257 /* Copy the program name first */ 3257 /* Copy the program name first */
3258 if (oargc-- < 0) 3258 if (oargc-- < 0)
3259 errorMsg("argc<=0"); 3259 errorMsg("argc<=0\n");
3260 *(nargv++) = *(oargv++); 3260 *(nargv++) = *(oargv++);
3261 3261
3262 /* Then copy the environment args */ 3262 /* Then copy the environment args */
diff --git a/insmod.c b/insmod.c
index 2b7ae961a..4f96c950e 100644
--- a/insmod.c
+++ b/insmod.c
@@ -77,7 +77,7 @@
77#ifndef MODUTILS_MODULE_H 77#ifndef MODUTILS_MODULE_H
78#define MODUTILS_MODULE_H 1 78#define MODUTILS_MODULE_H 1
79 79
80#ident "$Id: insmod.c,v 1.27 2000/10/23 17:55:27 kraai Exp $" 80#ident "$Id: insmod.c,v 1.28 2000/10/23 18:03:46 kraai Exp $"
81 81
82/* This file contains the structures used by the 2.0 and 2.1 kernels. 82/* This file contains the structures used by the 2.0 and 2.1 kernels.
83 We do not use the kernel headers directly because we do not wish 83 We do not use the kernel headers directly because we do not wish
@@ -283,7 +283,7 @@ int delete_module(const char *);
283#ifndef MODUTILS_OBJ_H 283#ifndef MODUTILS_OBJ_H
284#define MODUTILS_OBJ_H 1 284#define MODUTILS_OBJ_H 1
285 285
286#ident "$Id: insmod.c,v 1.27 2000/10/23 17:55:27 kraai Exp $" 286#ident "$Id: insmod.c,v 1.28 2000/10/23 18:03:46 kraai Exp $"
287 287
288/* The relocatable object is manipulated using elfin types. */ 288/* The relocatable object is manipulated using elfin types. */
289 289
@@ -1456,7 +1456,7 @@ static int old_get_kernel_symbols(const char *m_name)
1456 1456
1457 nks = get_kernel_syms(NULL); 1457 nks = get_kernel_syms(NULL);
1458 if (nks < 0) { 1458 if (nks < 0) {
1459 errorMsg("get_kernel_syms: %s: %s", m_name, strerror(errno)); 1459 errorMsg("get_kernel_syms: %s: %s\n", m_name, strerror(errno));
1460 return 0; 1460 return 0;
1461 } 1461 }
1462 1462
@@ -1637,7 +1637,7 @@ old_init_module(const char *m_name, struct obj_file *f,
1637 m_size | (flag_autoclean ? OLD_MOD_AUTOCLEAN 1637 m_size | (flag_autoclean ? OLD_MOD_AUTOCLEAN
1638 : 0), &routines, symtab); 1638 : 0), &routines, symtab);
1639 if (ret) 1639 if (ret)
1640 errorMsg("init_module: %s: %s", m_name, strerror(errno)); 1640 errorMsg("init_module: %s: %s\n", m_name, strerror(errno));
1641 1641
1642 free(image); 1642 free(image);
1643 free(symtab); 1643 free(symtab);
@@ -1949,7 +1949,7 @@ static int new_get_kernel_symbols(void)
1949 module_names = xrealloc(module_names, bufsize = ret); 1949 module_names = xrealloc(module_names, bufsize = ret);
1950 goto retry_modules_load; 1950 goto retry_modules_load;
1951 } 1951 }
1952 errorMsg("QM_MODULES: %s", strerror(errno)); 1952 errorMsg("QM_MODULES: %s\n", strerror(errno));
1953 return 0; 1953 return 0;
1954 } 1954 }
1955 1955
@@ -1968,7 +1968,7 @@ static int new_get_kernel_symbols(void)
1968 /* The module was removed out from underneath us. */ 1968 /* The module was removed out from underneath us. */
1969 continue; 1969 continue;
1970 } 1970 }
1971 errorMsg("query_module: QM_INFO: %s: %s", mn, strerror(errno)); 1971 errorMsg("query_module: QM_INFO: %s: %s\n", mn, strerror(errno));
1972 return 0; 1972 return 0;
1973 } 1973 }
1974 1974
@@ -1983,7 +1983,7 @@ static int new_get_kernel_symbols(void)
1983 /* The module was removed out from underneath us. */ 1983 /* The module was removed out from underneath us. */
1984 continue; 1984 continue;
1985 default: 1985 default:
1986 errorMsg("query_module: QM_SYMBOLS: %s: %s", mn, strerror(errno)); 1986 errorMsg("query_module: QM_SYMBOLS: %s: %s\n", mn, strerror(errno));
1987 return 0; 1987 return 0;
1988 } 1988 }
1989 } 1989 }
@@ -2008,7 +2008,7 @@ static int new_get_kernel_symbols(void)
2008 syms = xrealloc(syms, bufsize = ret); 2008 syms = xrealloc(syms, bufsize = ret);
2009 goto retry_kern_sym_load; 2009 goto retry_kern_sym_load;
2010 } 2010 }
2011 errorMsg("kernel: QM_SYMBOLS: %s", strerror(errno)); 2011 errorMsg("kernel: QM_SYMBOLS: %s\n", strerror(errno));
2012 return 0; 2012 return 0;
2013 } 2013 }
2014 nksyms = nsyms = ret; 2014 nksyms = nsyms = ret;
@@ -2189,7 +2189,7 @@ new_init_module(const char *m_name, struct obj_file *f,
2189 2189
2190 ret = new_sys_init_module(m_name, (struct new_module *) image); 2190 ret = new_sys_init_module(m_name, (struct new_module *) image);
2191 if (ret) 2191 if (ret)
2192 errorMsg("init_module: %s: %s", m_name, strerror(errno)); 2192 errorMsg("init_module: %s: %s\n", m_name, strerror(errno));
2193 2193
2194 free(image); 2194 free(image);
2195 2195
@@ -2569,7 +2569,7 @@ struct obj_file *obj_load(FILE * fp)
2569 2569
2570 fseek(fp, 0, SEEK_SET); 2570 fseek(fp, 0, SEEK_SET);
2571 if (fread(&f->header, sizeof(f->header), 1, fp) != 1) { 2571 if (fread(&f->header, sizeof(f->header), 1, fp) != 1) {
2572 errorMsg("error reading ELF header: %s", strerror(errno)); 2572 errorMsg("error reading ELF header: %s\n", strerror(errno));
2573 return NULL; 2573 return NULL;
2574 } 2574 }
2575 2575
@@ -2608,7 +2608,7 @@ struct obj_file *obj_load(FILE * fp)
2608 section_headers = alloca(sizeof(ElfW(Shdr)) * shnum); 2608 section_headers = alloca(sizeof(ElfW(Shdr)) * shnum);
2609 fseek(fp, f->header.e_shoff, SEEK_SET); 2609 fseek(fp, f->header.e_shoff, SEEK_SET);
2610 if (fread(section_headers, sizeof(ElfW(Shdr)), shnum, fp) != shnum) { 2610 if (fread(section_headers, sizeof(ElfW(Shdr)), shnum, fp) != shnum) {
2611 errorMsg("error reading ELF section headers: %s", strerror(errno)); 2611 errorMsg("error reading ELF section headers: %s\n", strerror(errno));
2612 return NULL; 2612 return NULL;
2613 } 2613 }
2614 2614
@@ -2638,7 +2638,7 @@ struct obj_file *obj_load(FILE * fp)
2638 sec->contents = xmalloc(sec->header.sh_size); 2638 sec->contents = xmalloc(sec->header.sh_size);
2639 fseek(fp, sec->header.sh_offset, SEEK_SET); 2639 fseek(fp, sec->header.sh_offset, SEEK_SET);
2640 if (fread(sec->contents, sec->header.sh_size, 1, fp) != 1) { 2640 if (fread(sec->contents, sec->header.sh_size, 1, fp) != 1) {
2641 errorMsg("error reading ELF section data: %s", strerror(errno)); 2641 errorMsg("error reading ELF section data: %s\n", strerror(errno));
2642 return NULL; 2642 return NULL;
2643 } 2643 }
2644 } else { 2644 } else {
diff --git a/md5sum.c b/md5sum.c
index c7e540223..21570de93 100644
--- a/md5sum.c
+++ b/md5sum.c
@@ -810,7 +810,7 @@ static int md5_check(const char *checkfile_name)
810 free(line); 810 free(line);
811 811
812 if (ferror(checkfile_stream)) { 812 if (ferror(checkfile_stream)) {
813 errorMsg("%s: read error", checkfile_name); /* */ 813 errorMsg("%s: read error\n", checkfile_name); /* */
814 return FALSE; 814 return FALSE;
815 } 815 }
816 816
@@ -991,12 +991,12 @@ int md5sum_main(int argc,
991 } 991 }
992 992
993 if (fclose (stdout) == EOF) { 993 if (fclose (stdout) == EOF) {
994 errorMsg("write error"); 994 errorMsg("write error\n");
995 exit FALSE; 995 exit FALSE;
996 } 996 }
997 997
998 if (have_read_stdin && fclose (stdin) == EOF) { 998 if (have_read_stdin && fclose (stdin) == EOF) {
999 errorMsg("standard input"); 999 errorMsg("standard input\n");
1000 exit FALSE; 1000 exit FALSE;
1001 } 1001 }
1002 1002
diff --git a/modutils/insmod.c b/modutils/insmod.c
index 2b7ae961a..4f96c950e 100644
--- a/modutils/insmod.c
+++ b/modutils/insmod.c
@@ -77,7 +77,7 @@
77#ifndef MODUTILS_MODULE_H 77#ifndef MODUTILS_MODULE_H
78#define MODUTILS_MODULE_H 1 78#define MODUTILS_MODULE_H 1
79 79
80#ident "$Id: insmod.c,v 1.27 2000/10/23 17:55:27 kraai Exp $" 80#ident "$Id: insmod.c,v 1.28 2000/10/23 18:03:46 kraai Exp $"
81 81
82/* This file contains the structures used by the 2.0 and 2.1 kernels. 82/* This file contains the structures used by the 2.0 and 2.1 kernels.
83 We do not use the kernel headers directly because we do not wish 83 We do not use the kernel headers directly because we do not wish
@@ -283,7 +283,7 @@ int delete_module(const char *);
283#ifndef MODUTILS_OBJ_H 283#ifndef MODUTILS_OBJ_H
284#define MODUTILS_OBJ_H 1 284#define MODUTILS_OBJ_H 1
285 285
286#ident "$Id: insmod.c,v 1.27 2000/10/23 17:55:27 kraai Exp $" 286#ident "$Id: insmod.c,v 1.28 2000/10/23 18:03:46 kraai Exp $"
287 287
288/* The relocatable object is manipulated using elfin types. */ 288/* The relocatable object is manipulated using elfin types. */
289 289
@@ -1456,7 +1456,7 @@ static int old_get_kernel_symbols(const char *m_name)
1456 1456
1457 nks = get_kernel_syms(NULL); 1457 nks = get_kernel_syms(NULL);
1458 if (nks < 0) { 1458 if (nks < 0) {
1459 errorMsg("get_kernel_syms: %s: %s", m_name, strerror(errno)); 1459 errorMsg("get_kernel_syms: %s: %s\n", m_name, strerror(errno));
1460 return 0; 1460 return 0;
1461 } 1461 }
1462 1462
@@ -1637,7 +1637,7 @@ old_init_module(const char *m_name, struct obj_file *f,
1637 m_size | (flag_autoclean ? OLD_MOD_AUTOCLEAN 1637 m_size | (flag_autoclean ? OLD_MOD_AUTOCLEAN
1638 : 0), &routines, symtab); 1638 : 0), &routines, symtab);
1639 if (ret) 1639 if (ret)
1640 errorMsg("init_module: %s: %s", m_name, strerror(errno)); 1640 errorMsg("init_module: %s: %s\n", m_name, strerror(errno));
1641 1641
1642 free(image); 1642 free(image);
1643 free(symtab); 1643 free(symtab);
@@ -1949,7 +1949,7 @@ static int new_get_kernel_symbols(void)
1949 module_names = xrealloc(module_names, bufsize = ret); 1949 module_names = xrealloc(module_names, bufsize = ret);
1950 goto retry_modules_load; 1950 goto retry_modules_load;
1951 } 1951 }
1952 errorMsg("QM_MODULES: %s", strerror(errno)); 1952 errorMsg("QM_MODULES: %s\n", strerror(errno));
1953 return 0; 1953 return 0;
1954 } 1954 }
1955 1955
@@ -1968,7 +1968,7 @@ static int new_get_kernel_symbols(void)
1968 /* The module was removed out from underneath us. */ 1968 /* The module was removed out from underneath us. */
1969 continue; 1969 continue;
1970 } 1970 }
1971 errorMsg("query_module: QM_INFO: %s: %s", mn, strerror(errno)); 1971 errorMsg("query_module: QM_INFO: %s: %s\n", mn, strerror(errno));
1972 return 0; 1972 return 0;
1973 } 1973 }
1974 1974
@@ -1983,7 +1983,7 @@ static int new_get_kernel_symbols(void)
1983 /* The module was removed out from underneath us. */ 1983 /* The module was removed out from underneath us. */
1984 continue; 1984 continue;
1985 default: 1985 default:
1986 errorMsg("query_module: QM_SYMBOLS: %s: %s", mn, strerror(errno)); 1986 errorMsg("query_module: QM_SYMBOLS: %s: %s\n", mn, strerror(errno));
1987 return 0; 1987 return 0;
1988 } 1988 }
1989 } 1989 }
@@ -2008,7 +2008,7 @@ static int new_get_kernel_symbols(void)
2008 syms = xrealloc(syms, bufsize = ret); 2008 syms = xrealloc(syms, bufsize = ret);
2009 goto retry_kern_sym_load; 2009 goto retry_kern_sym_load;
2010 } 2010 }
2011 errorMsg("kernel: QM_SYMBOLS: %s", strerror(errno)); 2011 errorMsg("kernel: QM_SYMBOLS: %s\n", strerror(errno));
2012 return 0; 2012 return 0;
2013 } 2013 }
2014 nksyms = nsyms = ret; 2014 nksyms = nsyms = ret;
@@ -2189,7 +2189,7 @@ new_init_module(const char *m_name, struct obj_file *f,
2189 2189
2190 ret = new_sys_init_module(m_name, (struct new_module *) image); 2190 ret = new_sys_init_module(m_name, (struct new_module *) image);
2191 if (ret) 2191 if (ret)
2192 errorMsg("init_module: %s: %s", m_name, strerror(errno)); 2192 errorMsg("init_module: %s: %s\n", m_name, strerror(errno));
2193 2193
2194 free(image); 2194 free(image);
2195 2195
@@ -2569,7 +2569,7 @@ struct obj_file *obj_load(FILE * fp)
2569 2569
2570 fseek(fp, 0, SEEK_SET); 2570 fseek(fp, 0, SEEK_SET);
2571 if (fread(&f->header, sizeof(f->header), 1, fp) != 1) { 2571 if (fread(&f->header, sizeof(f->header), 1, fp) != 1) {
2572 errorMsg("error reading ELF header: %s", strerror(errno)); 2572 errorMsg("error reading ELF header: %s\n", strerror(errno));
2573 return NULL; 2573 return NULL;
2574 } 2574 }
2575 2575
@@ -2608,7 +2608,7 @@ struct obj_file *obj_load(FILE * fp)
2608 section_headers = alloca(sizeof(ElfW(Shdr)) * shnum); 2608 section_headers = alloca(sizeof(ElfW(Shdr)) * shnum);
2609 fseek(fp, f->header.e_shoff, SEEK_SET); 2609 fseek(fp, f->header.e_shoff, SEEK_SET);
2610 if (fread(section_headers, sizeof(ElfW(Shdr)), shnum, fp) != shnum) { 2610 if (fread(section_headers, sizeof(ElfW(Shdr)), shnum, fp) != shnum) {
2611 errorMsg("error reading ELF section headers: %s", strerror(errno)); 2611 errorMsg("error reading ELF section headers: %s\n", strerror(errno));
2612 return NULL; 2612 return NULL;
2613 } 2613 }
2614 2614
@@ -2638,7 +2638,7 @@ struct obj_file *obj_load(FILE * fp)
2638 sec->contents = xmalloc(sec->header.sh_size); 2638 sec->contents = xmalloc(sec->header.sh_size);
2639 fseek(fp, sec->header.sh_offset, SEEK_SET); 2639 fseek(fp, sec->header.sh_offset, SEEK_SET);
2640 if (fread(sec->contents, sec->header.sh_size, 1, fp) != 1) { 2640 if (fread(sec->contents, sec->header.sh_size, 1, fp) != 1) {
2641 errorMsg("error reading ELF section data: %s", strerror(errno)); 2641 errorMsg("error reading ELF section data: %s\n", strerror(errno));
2642 return NULL; 2642 return NULL;
2643 } 2643 }
2644 } else { 2644 } else {