diff options
author | Matt Kraai | 2000-10-23 18:03:46 +0000 |
---|---|---|
committer | Matt Kraai | 2000-10-23 18:03:46 +0000 |
commit | 207061ac0d400f663dc411c132d7fc07dca7d496 (patch) | |
tree | 4d50f76923e65e6247dc399f20b37c5c1bc79487 /modutils | |
parent | 2be4797a06849cf5c9c4f97e1489d70b7fc8be36 (diff) | |
download | busybox-207061ac0d400f663dc411c132d7fc07dca7d496.zip busybox-207061ac0d400f663dc411c132d7fc07dca7d496.tar.gz |
Fix error messages.
Diffstat (limited to 'modutils')
-rw-r--r-- | modutils/insmod.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/modutils/insmod.c b/modutils/insmod.c index 2b7ae96..4f96c95 100644 --- a/modutils/insmod.c +++ b/modutils/insmod.c @@ -77,7 +77,7 @@ #ifndef MODUTILS_MODULE_H #define MODUTILS_MODULE_H 1 -#ident "$Id: insmod.c,v 1.27 2000/10/23 17:55:27 kraai Exp $" +#ident "$Id: insmod.c,v 1.28 2000/10/23 18:03:46 kraai Exp $" /* This file contains the structures used by the 2.0 and 2.1 kernels. We do not use the kernel headers directly because we do not wish @@ -283,7 +283,7 @@ int delete_module(const char *); #ifndef MODUTILS_OBJ_H #define MODUTILS_OBJ_H 1 -#ident "$Id: insmod.c,v 1.27 2000/10/23 17:55:27 kraai Exp $" +#ident "$Id: insmod.c,v 1.28 2000/10/23 18:03:46 kraai Exp $" /* The relocatable object is manipulated using elfin types. */ @@ -1456,7 +1456,7 @@ static int old_get_kernel_symbols(const char *m_name) nks = get_kernel_syms(NULL); if (nks < 0) { - errorMsg("get_kernel_syms: %s: %s", m_name, strerror(errno)); + errorMsg("get_kernel_syms: %s: %s\n", m_name, strerror(errno)); return 0; } @@ -1637,7 +1637,7 @@ old_init_module(const char *m_name, struct obj_file *f, m_size | (flag_autoclean ? OLD_MOD_AUTOCLEAN : 0), &routines, symtab); if (ret) - errorMsg("init_module: %s: %s", m_name, strerror(errno)); + errorMsg("init_module: %s: %s\n", m_name, strerror(errno)); free(image); free(symtab); @@ -1949,7 +1949,7 @@ static int new_get_kernel_symbols(void) module_names = xrealloc(module_names, bufsize = ret); goto retry_modules_load; } - errorMsg("QM_MODULES: %s", strerror(errno)); + errorMsg("QM_MODULES: %s\n", strerror(errno)); return 0; } @@ -1968,7 +1968,7 @@ static int new_get_kernel_symbols(void) /* The module was removed out from underneath us. */ continue; } - errorMsg("query_module: QM_INFO: %s: %s", mn, strerror(errno)); + errorMsg("query_module: QM_INFO: %s: %s\n", mn, strerror(errno)); return 0; } @@ -1983,7 +1983,7 @@ static int new_get_kernel_symbols(void) /* The module was removed out from underneath us. */ continue; default: - errorMsg("query_module: QM_SYMBOLS: %s: %s", mn, strerror(errno)); + errorMsg("query_module: QM_SYMBOLS: %s: %s\n", mn, strerror(errno)); return 0; } } @@ -2008,7 +2008,7 @@ static int new_get_kernel_symbols(void) syms = xrealloc(syms, bufsize = ret); goto retry_kern_sym_load; } - errorMsg("kernel: QM_SYMBOLS: %s", strerror(errno)); + errorMsg("kernel: QM_SYMBOLS: %s\n", strerror(errno)); return 0; } nksyms = nsyms = ret; @@ -2189,7 +2189,7 @@ new_init_module(const char *m_name, struct obj_file *f, ret = new_sys_init_module(m_name, (struct new_module *) image); if (ret) - errorMsg("init_module: %s: %s", m_name, strerror(errno)); + errorMsg("init_module: %s: %s\n", m_name, strerror(errno)); free(image); @@ -2569,7 +2569,7 @@ struct obj_file *obj_load(FILE * fp) fseek(fp, 0, SEEK_SET); if (fread(&f->header, sizeof(f->header), 1, fp) != 1) { - errorMsg("error reading ELF header: %s", strerror(errno)); + errorMsg("error reading ELF header: %s\n", strerror(errno)); return NULL; } @@ -2608,7 +2608,7 @@ struct obj_file *obj_load(FILE * fp) section_headers = alloca(sizeof(ElfW(Shdr)) * shnum); fseek(fp, f->header.e_shoff, SEEK_SET); if (fread(section_headers, sizeof(ElfW(Shdr)), shnum, fp) != shnum) { - errorMsg("error reading ELF section headers: %s", strerror(errno)); + errorMsg("error reading ELF section headers: %s\n", strerror(errno)); return NULL; } @@ -2638,7 +2638,7 @@ struct obj_file *obj_load(FILE * fp) sec->contents = xmalloc(sec->header.sh_size); fseek(fp, sec->header.sh_offset, SEEK_SET); if (fread(sec->contents, sec->header.sh_size, 1, fp) != 1) { - errorMsg("error reading ELF section data: %s", strerror(errno)); + errorMsg("error reading ELF section data: %s\n", strerror(errno)); return NULL; } } else { |