mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
Rename CONFIG_DEBUG to CONFIG_DEBUG_FEATURES
This commit is contained in:
@@ -973,7 +973,7 @@ int mkfatfs_configfatfs(FAR struct fat_format_s *fmt,
|
||||
|
||||
/* Describe the configured filesystem */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
fdbg("Sector size: %d bytes\n", var->fv_sectorsize);
|
||||
fdbg("Number of sectors: %d sectors\n", fmt->ff_nsectors);
|
||||
fdbg("FAT size: %d bits\n", var->fv_fattype);
|
||||
|
||||
+2
-2
@@ -193,7 +193,7 @@ int mkfatfs(FAR const char *pathname, FAR struct fat_format_s *fmt)
|
||||
|
||||
/* Verify format options (only when DEBUG enabled) */
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (!pathname)
|
||||
{
|
||||
fdbg("ERROR: No block driver path\n");
|
||||
@@ -228,7 +228,7 @@ int mkfatfs(FAR const char *pathname, FAR struct fat_format_s *fmt)
|
||||
* means that we should autoselect the cluster sizel.
|
||||
*/
|
||||
|
||||
#ifdef CONFIG_DEBUG
|
||||
#ifdef CONFIG_DEBUG_FEATURES
|
||||
if (fmt->ff_clustshift > 7 && fmt->ff_clustshift != 0xff)
|
||||
{
|
||||
fdbg("ERROR: Invalid cluster shift value: %d\n", fmt->ff_clustshift);
|
||||
|
||||
Reference in New Issue
Block a user