mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
This commit is contained in:
@@ -184,7 +184,7 @@ static ssize_t filemtd_write(FAR struct file_dev_s *priv, size_t offset,
|
||||
* erased state.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (newvalue != srcvalue)
|
||||
{
|
||||
dbg("ERROR: Bad write: source=%02x dest=%02x result=%02x\n",
|
||||
|
||||
+2
-2
@@ -466,7 +466,7 @@ static int ftl_ioctl(FAR struct inode *inode, int cmd, unsigned long arg)
|
||||
* driver.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (arg == 0)
|
||||
{
|
||||
fdbg("ERROR: BIOC_XIPBASE argument is NULL\n");
|
||||
@@ -519,7 +519,7 @@ int ftl_initialize(int minor, FAR struct mtd_dev_s *mtd)
|
||||
|
||||
/* Sanity check */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (minor < 0 || minor > 255 || !mtd)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
||||
@@ -169,7 +169,7 @@ static void *ram_write(FAR void *dest, FAR const void *src, size_t len)
|
||||
* erased state.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (newvalue != srcvalue)
|
||||
{
|
||||
dbg("ERROR: Bad write: source=%02x dest=%02x result=%02x\n",
|
||||
|
||||
+3
-3
@@ -5104,7 +5104,7 @@ static int smart_ioctl(FAR struct inode *inode, int cmd, unsigned long arg)
|
||||
* driver.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (arg == 0)
|
||||
{
|
||||
fdbg("ERROR: BIOC_XIPBASE argument is NULL\n");
|
||||
@@ -5281,7 +5281,7 @@ int smart_initialize(int minor, FAR struct mtd_dev_s *mtd, FAR const char *partn
|
||||
|
||||
/* Sanity check */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (minor < 0 || minor > 255 || !mtd)
|
||||
{
|
||||
return -EINVAL;
|
||||
@@ -5550,7 +5550,7 @@ static int smart_loteardown(FAR const char *devname)
|
||||
|
||||
/* Sanity check */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (!devname)
|
||||
{
|
||||
return -EINVAL;
|
||||
|
||||
@@ -697,7 +697,7 @@ static ssize_t sst39vf_bwrite(FAR struct mtd_dev_s *dev, off_t startblock,
|
||||
static ssize_t sst39vf_read(FAR struct mtd_dev_s *dev, off_t offset,
|
||||
size_t nbytes, FAR uint8_t *buffer)
|
||||
{
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
FAR struct sst39vf_dev_s *priv = (FAR struct sst39vf_dev_s *)dev;
|
||||
#endif
|
||||
FAR const uint8_t *source;
|
||||
|
||||
Reference in New Issue
Block a user