mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Add _ to the beginning of all debug macros to avoid name collisions
This commit is contained in:
@@ -103,7 +103,7 @@ int bchdev_unregister(FAR const char *chardev)
|
||||
fd = open(chardev, O_RDONLY);
|
||||
if (fd < 0)
|
||||
{
|
||||
err("ERROR: Failed to open %s: %d\n", chardev, errno);
|
||||
_err("ERROR: Failed to open %s: %d\n", chardev, errno);
|
||||
return -errno;
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ int bchdev_unregister(FAR const char *chardev)
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
err("ERROR: ioctl failed: %d\n", errno);
|
||||
_err("ERROR: ioctl failed: %d\n", errno);
|
||||
return -errno;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user