mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
sched/modules: Be consistent use of binary loader debug instrumentation. Was mixed system and binary loader debug. libs/libc/modlib: Switch from systemb to binary load debug to be consistent with sched/modules.
This commit is contained in:
@@ -200,7 +200,7 @@ FAR void *insmod(FAR const char *filename, FAR const char *modname)
|
||||
mod_dumploadinfo(&loadinfo);
|
||||
if (ret != 0)
|
||||
{
|
||||
serr("ERROR: Failed to initialize to load module: %d\n", ret);
|
||||
berr("ERROR: Failed to initialize to load module: %d\n", ret);
|
||||
goto errout_with_lock;
|
||||
}
|
||||
|
||||
|
||||
@@ -85,7 +85,7 @@ FAR void *modhandle(FAR const char *name)
|
||||
modp = modlib_registry_find(name);
|
||||
if (modp == NULL)
|
||||
{
|
||||
serr("ERROR: Failed to find module %s: %d\n", name, modp);
|
||||
berr("ERROR: Failed to find module %s: %d\n", name, modp);
|
||||
set_errno(ENOENT);
|
||||
}
|
||||
|
||||
|
||||
@@ -93,7 +93,7 @@ FAR const void *modsym(FAR void *handle, FAR const char *name)
|
||||
ret = modlib_registry_verify(modp);
|
||||
if (ret < 0)
|
||||
{
|
||||
serr("ERROR: Failed to verify module: %d\n", ret);
|
||||
berr("ERROR: Failed to verify module: %d\n", ret);
|
||||
err = -ret;
|
||||
goto errout_with_lock;
|
||||
}
|
||||
@@ -102,7 +102,7 @@ FAR const void *modsym(FAR void *handle, FAR const char *name)
|
||||
|
||||
if (modp->modinfo.exports == NULL || modp->modinfo.nexports == 0)
|
||||
{
|
||||
serr("ERROR: Module has no symbol table\n");
|
||||
berr("ERROR: Module has no symbol table\n");
|
||||
err = ENOENT;
|
||||
goto errout_with_lock;
|
||||
}
|
||||
@@ -113,7 +113,7 @@ FAR const void *modsym(FAR void *handle, FAR const char *name)
|
||||
modp->modinfo.nexports);
|
||||
if (symbol == NULL)
|
||||
{
|
||||
serr("ERROR: Failed to find symbol in symbol \"$s\" in table\n", name);
|
||||
berr("ERROR: Failed to find symbol in symbol \"$s\" in table\n", name);
|
||||
err = ENOENT;
|
||||
goto errout_with_lock;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ int rmmod(FAR void *handle)
|
||||
ret = modlib_registry_verify(modp);
|
||||
if (ret < 0)
|
||||
{
|
||||
serr("ERROR: Failed to verify module: %d\n", ret);
|
||||
berr("ERROR: Failed to verify module: %d\n", ret);
|
||||
goto errout_with_lock;
|
||||
}
|
||||
|
||||
@@ -93,7 +93,7 @@ int rmmod(FAR void *handle)
|
||||
|
||||
if (modp->dependents > 0)
|
||||
{
|
||||
serr("ERROR: Module has dependents: %d\n", modp->dependents);
|
||||
berr("ERROR: Module has dependents: %d\n", modp->dependents);
|
||||
ret = -EBUSY;
|
||||
goto errout_with_lock;
|
||||
}
|
||||
@@ -111,7 +111,7 @@ int rmmod(FAR void *handle)
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
serr("ERROR: Failed to uninitialize the module: %d\n", ret);
|
||||
berr("ERROR: Failed to uninitialize the module: %d\n", ret);
|
||||
goto errout_with_lock;
|
||||
}
|
||||
|
||||
@@ -148,7 +148,7 @@ int rmmod(FAR void *handle)
|
||||
ret = modlib_registry_del(modp);
|
||||
if (ret < 0)
|
||||
{
|
||||
serr("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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user