Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()

This commit is contained in:
Gregory Nutt
2016-06-11 15:50:49 -06:00
parent e99301d7c2
commit a1469a3e95
1091 changed files with 5971 additions and 5966 deletions
+4 -4
View File
@@ -103,7 +103,7 @@ static int builtin_loadbinary(struct binary_s *binp)
if (fd < 0)
{
int errval = get_errno();
bdbg("ERROR: Failed to open binary %s: %d\n", binp->filename, errval);
berr("ERROR: Failed to open binary %s: %d\n", binp->filename, errval);
return -errval;
}
@@ -115,7 +115,7 @@ static int builtin_loadbinary(struct binary_s *binp)
if (ret < 0)
{
int errval = get_errno();
bdbg("ERROR: FIOC_FILENAME ioctl failed: %d\n", errval);
berr("ERROR: FIOC_FILENAME ioctl failed: %d\n", errval);
close(fd);
return -errval;
}
@@ -128,7 +128,7 @@ static int builtin_loadbinary(struct binary_s *binp)
if (index < 0)
{
int errval = get_errno();
bdbg("ERROR: %s is not a builtin application\n", filename);
berr("ERROR: %s is not a builtin application\n", filename);
close(fd);
return -errval;
@@ -176,7 +176,7 @@ int builtin_initialize(void)
ret = register_binfmt(&g_builtin_binfmt);
if (ret != 0)
{
bdbg("Failed to register binfmt: %d\n", ret);
berr("Failed to register binfmt: %d\n", ret);
}
return ret;