You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by ag...@apache.org on 2020/03/26 17:46:26 UTC
[incubator-nuttx-apps] 04/04: module: Appease nxstyle complaints
This is an automated email from the ASF dual-hosted git repository.
aguettouche pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx-apps.git
commit 9dca031f26b6c6b50234f7984967553bddd3c905
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Thu Mar 26 16:15:05 2020 +0900
module: Appease nxstyle complaints
---
examples/module/module_main.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/examples/module/module_main.c b/examples/module/module_main.c
index 896f68e..3b65dfb 100644
--- a/examples/module/module_main.c
+++ b/examples/module/module_main.c
@@ -167,7 +167,8 @@ int main(int argc, FAR char *argv[])
ret = boardctl(BOARDIOC_OS_SYMTAB, (uintptr_t)&symdesc);
if (ret < 0)
{
- fprintf(stderr, "ERROR: boardctl(BOARDIOC_OS_SYMTAB) failed: %d\n", ret);
+ fprintf(stderr, "ERROR: boardctl(BOARDIOC_OS_SYMTAB) failed: %d\n",
+ ret);
exit(EXIT_FAILURE);
}
#endif
@@ -188,7 +189,8 @@ int main(int argc, FAR char *argv[])
* anyway).
*/
- ret = romdisk_register(CONFIG_EXAMPLES_MODULE_DEVMINOR, (FAR uint8_t *)romfs_img,
+ ret = romdisk_register(CONFIG_EXAMPLES_MODULE_DEVMINOR,
+ (FAR uint8_t *)romfs_img,
NSECTORS(romfs_img_len), SECTORSIZE);
if (ret < 0)
{
@@ -275,7 +277,7 @@ int main(int argc, FAR char *argv[])
CONFIG_EXAMPLES_MODULE_FSTYPE, MS_RDONLY, NULL);
if (ret < 0)
{
- printf("ERROR: mount(%s, %s, %s) failed: %d\n",\
+ printf("ERROR: mount(%s, %s, %s) failed: %d\n",
CONFIG_EXAMPLES_MODULE_DEVPATH, CONFIG_EXAMPLES_MODULE_FSTYPE,
MOUNTPT, errno);
}
@@ -330,7 +332,8 @@ int main(int argc, FAR char *argv[])
}
printf("main: Wrote %d bytes: %d\n", (int)nbytes);
- lib_dumpbuffer("main: Bytes written", (FAR const uint8_t *)g_write_string, nbytes);
+ lib_dumpbuffer("main: Bytes written", (FAR const uint8_t *)g_write_string,
+ nbytes);
close(fd);
ret = rmmod(handle);