mirror of
https://github.com/apache/nuttx.git
synced 2026-09-27 10:46:02 +08:00
Add CONFIG_DEBUG_ERROR. Change names of *dbg() * *err()
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user