From 793b0c2040cf81b05c3cbc686d604531695497ec Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Tue, 10 Mar 2020 14:38:38 +0900 Subject: [PATCH] sched/module: Wrap long lines to make nxstyle happy --- sched/module/mod_insmod.c | 3 ++- sched/module/mod_procfs.c | 18 +++++++++++------- sched/module/mod_rmmod.c | 3 ++- 3 files changed, 15 insertions(+), 9 deletions(-) diff --git a/sched/module/mod_insmod.c b/sched/module/mod_insmod.c index 2209bef25a..3d0d266fc8 100644 --- a/sched/module/mod_insmod.c +++ b/sched/module/mod_insmod.c @@ -245,7 +245,8 @@ FAR void *insmod(FAR const char *filename, FAR const char *modname) /* Get the module initializer entry point */ - initializer = (mod_initializer_t)(loadinfo.textalloc + loadinfo.ehdr.e_entry); + initializer = (mod_initializer_t)(loadinfo.textalloc + + loadinfo.ehdr.e_entry); #if defined(CONFIG_FS_PROCFS) && !defined(CONFIG_FS_PROCFS_EXCLUDE_MODULE) modp->initializer = initializer; #endif diff --git a/sched/module/mod_procfs.c b/sched/module/mod_procfs.c index 9b4cbf4910..b740dee0b7 100644 --- a/sched/module/mod_procfs.c +++ b/sched/module/mod_procfs.c @@ -95,13 +95,15 @@ struct modprocfs_file_s /* File system methods */ -static int modprocfs_open(FAR struct file *filep, FAR const char *relpath, - int oflags, mode_t mode); +static int modprocfs_open(FAR struct file *filep, + FAR const char *relpath, + int oflags, mode_t mode); static int modprocfs_close(FAR struct file *filep); -static ssize_t modprocfs_read(FAR struct file *filep, FAR char *buffer, - size_t buflen); +static ssize_t modprocfs_read(FAR struct file *filep, + FAR char *buffer, + size_t buflen); static int modprocfs_dup(FAR const struct file *oldp, - FAR struct file *newp); + FAR struct file *newp); static int modprocfs_stat(FAR const char *relpath, FAR struct stat *buf); /**************************************************************************** @@ -146,7 +148,8 @@ static int modprocfs_callback(FAR struct module_s *modp, FAR void *arg) DEBUGASSERT(modp != NULL && arg != NULL); priv = (FAR struct modprocfs_file_s *)arg; - linesize = snprintf(priv->line, MOD_LINELEN, "%s,%p,%p,%p,%u,%p,%lu,%p,%lu\n", + linesize = snprintf(priv->line, MOD_LINELEN, + "%s,%p,%p,%p,%u,%p,%lu,%p,%lu\n", modp->modname, modp->initializer, modp->modinfo.uninitializer, modp->modinfo.arg, modp->modinfo.nexports, modp->alloc, @@ -187,7 +190,8 @@ static int modprocfs_open(FAR struct file *filep, FAR const char *relpath, /* Allocate the open file structure */ - priv = (FAR struct modprocfs_file_s *)kmm_zalloc(sizeof(struct modprocfs_file_s)); + priv = (FAR struct modprocfs_file_s *) + kmm_zalloc(sizeof(struct modprocfs_file_s)); if (!priv) { ferr("ERROR: Failed to allocate file attributes\n"); diff --git a/sched/module/mod_rmmod.c b/sched/module/mod_rmmod.c index 885eeef006..35d34a4d81 100644 --- a/sched/module/mod_rmmod.c +++ b/sched/module/mod_rmmod.c @@ -148,7 +148,8 @@ int rmmod(FAR void *handle) ret = modlib_registry_del(modp); if (ret < 0) { - berr("ERROR: Failed to remove the module from the registry: %d\n", ret); + berr("ERROR: Failed to remove the module from the registry: %d\n", + ret); goto errout_with_lock; }