From 6f3e12709477e77f1df7d318440c70c12d28b77b Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 13 Apr 2020 12:54:29 +0900 Subject: [PATCH] Appease nxstyle complaints --- libs/libc/modlib/modlib.h | 7 ++++--- libs/libc/modlib/modlib_sections.c | 4 +++- libs/libc/modlib/modlib_symbols.c | 4 +++- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/libs/libc/modlib/modlib.h b/libs/libc/modlib/modlib.h index 26b1112e47..f03cc98e51 100644 --- a/libs/libc/modlib/modlib.h +++ b/libs/libc/modlib/modlib.h @@ -116,8 +116,8 @@ int modlib_readsym(FAR struct mod_loadinfo_s *loadinfo, int index, * 0 (OK) is returned on success and a negated errno is returned on * failure. * - * EINVAL - There is something inconsistent in the symbol table (should only - * happen if the file is corrupted) + * EINVAL - There is something inconsistent in the symbol table (should + * only happen if the file is corrupted) * ENOSYS - Symbol lies in common * ESRCH - Symbol has no name * ENOENT - Symbol undefined and not provided via a symbol table @@ -189,7 +189,8 @@ int modlib_allocbuffer(FAR struct mod_loadinfo_s *loadinfo); * ****************************************************************************/ -int modlib_reallocbuffer(FAR struct mod_loadinfo_s *loadinfo, size_t increment); +int modlib_reallocbuffer(FAR struct mod_loadinfo_s *loadinfo, + size_t increment); /**************************************************************************** * Name: modlib_freebuffers diff --git a/libs/libc/modlib/modlib_sections.c b/libs/libc/modlib/modlib_sections.c index 377ff4f192..c65fbfcbb5 100644 --- a/libs/libc/modlib/modlib_sections.c +++ b/libs/libc/modlib/modlib_sections.c @@ -248,7 +248,9 @@ int modlib_findsection(FAR struct mod_loadinfo_s *loadinfo, int ret; int i; - /* Search through the shdr[] array in loadinfo for a section named 'sectname' */ + /* Search through the shdr[] array in loadinfo for a section named + * 'sectname' + */ for (i = 0; i < loadinfo->ehdr.e_shnum; i++) { diff --git a/libs/libc/modlib/modlib_symbols.c b/libs/libc/modlib/modlib_symbols.c index a3eed52b44..e000fbf64e 100644 --- a/libs/libc/modlib/modlib_symbols.c +++ b/libs/libc/modlib/modlib_symbols.c @@ -412,7 +412,9 @@ int modlib_symvalue(FAR struct module_s *modp, return -ENOENT; } - /* Yes... add the exported symbol value to the ELF symbol table entry */ + /* Yes... add the exported symbol value to the ELF symbol tablei + * entry + */ binfo("SHN_UNDEF: name=%s %08x+%08x=%08x\n", loadinfo->iobuffer, sym->st_value, symbol->sym_value,