sched/module: Wrap long lines to make nxstyle happy

This commit is contained in:
YAMAMOTO Takashi 2020-03-10 14:38:38 +09:00 committed by Xiang Xiao
parent d4b0590abb
commit 793b0c2040
3 changed files with 15 additions and 9 deletions

View File

@ -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

View File

@ -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");

View File

@ -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;
}