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
+5 -5
View File
@@ -58,12 +58,12 @@
/* Non-standard debug that may be enabled just for testing the modem driver */
#ifdef CONFIG_MODEM_U_BLOX_DEBUG
# define m_dbg dbg
# define m_err err
# define m_info info
# define m_vllerr llerr
# define m_vllinfo llinfo
#else
# define m_dbg(x...)
# define m_err(x...)
# define m_info(x...)
# define m_llerr(x...)
# define m_llinfo(x...)
@@ -286,7 +286,7 @@ FAR void* ubxmdm_register(FAR const char *path,
kmm_zalloc(sizeof(struct ubxmdm_upper));
if (!upper)
{
m_dbg("Upper half allocation failed\n");
m_err("Upper half allocation failed\n");
goto errout;
}
@@ -294,14 +294,14 @@ FAR void* ubxmdm_register(FAR const char *path,
upper->path = strdup(path);
if (!upper->path)
{
m_dbg("Path allocation failed\n");
m_err("Path allocation failed\n");
goto errout_with_upper;
}
ret = register_driver(path, &ubxmdm_fops, 0666, upper);
if (ret < 0)
{
m_dbg("register_driver failed: %d\n", ret);
m_err("register_driver failed: %d\n", ret);
goto errout_with_path;
}