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:
Gregory Nutt
2018-06-01 10:10:17 -06:00
parent 12de93dd36
commit a6a88198c0
13 changed files with 68 additions and 68 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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);
}
+3 -3
View File
@@ -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;
}
+4 -4
View File
@@ -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;
}