You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2020/03/10 08:56:16 UTC
[incubator-nuttx] branch master updated: sched/module: Wrap long
lines to make nxstyle happy
This is an automated email from the ASF dual-hosted git repository.
xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 793b0c2 sched/module: Wrap long lines to make nxstyle happy
793b0c2 is described below
commit 793b0c2040cf81b05c3cbc686d604531695497ec
Author: YAMAMOTO Takashi <ya...@midokura.com>
AuthorDate: Tue Mar 10 14:38:38 2020 +0900
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 2209bef..3d0d266 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 9b4cbf4..b740dee 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 885eeef..35d34a4 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;
}