mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
Replace all occurrences of vdbg with vinfo
This commit is contained in:
@@ -464,7 +464,7 @@ mkfatfs_tryfat12(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var,
|
||||
maxnclusters = FAT_MAXCLUST12;
|
||||
}
|
||||
|
||||
fvdbg("nfatsects=%u nclusters=%u (max=%u)\n",
|
||||
finfo("nfatsects=%u nclusters=%u (max=%u)\n",
|
||||
config->fc_nfatsects, config->fc_nclusters, maxnclusters);
|
||||
|
||||
/* Check if this number of clusters would overflow the maximum for
|
||||
@@ -535,7 +535,7 @@ mkfatfs_tryfat16(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var,
|
||||
maxnclusters = FAT_MAXCLUST16;
|
||||
}
|
||||
|
||||
fvdbg("nfatsects=%u nclusters=%u (min=%u max=%u)\n",
|
||||
finfo("nfatsects=%u nclusters=%u (min=%u max=%u)\n",
|
||||
config->fc_nfatsects, config->fc_nclusters, FAT_MINCLUST16,
|
||||
maxnclusters);
|
||||
|
||||
@@ -612,7 +612,7 @@ mkfatfs_tryfat32(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var,
|
||||
maxnclusters = FAT_MAXCLUST32;
|
||||
}
|
||||
|
||||
fvdbg("nfatsects=%u nclusters=%u (max=%u)\n",
|
||||
finfo("nfatsects=%u nclusters=%u (max=%u)\n",
|
||||
config->fc_nfatsects, config->fc_nclusters, maxnclusters);
|
||||
|
||||
/* Check if this number of clusters would overflow the maximum for
|
||||
@@ -654,7 +654,7 @@ mkfatfs_selectfat(int fattype, FAR struct fat_format_s *fmt,
|
||||
{
|
||||
/* Return the appropriate information about the selected file system. */
|
||||
|
||||
fvdbg("Selected FAT%d\n", fattype);
|
||||
finfo("Selected FAT%d\n", fattype);
|
||||
|
||||
var->fv_fattype = fattype;
|
||||
var->fv_nclusters = config->fc_nclusters;
|
||||
@@ -745,7 +745,7 @@ mkfatfs_clustersearch(FAR struct fat_format_s *fmt, FAR struct fat_var_s *var)
|
||||
|
||||
do
|
||||
{
|
||||
fvdbg("Configuring with %d sectors/cluster...\n",
|
||||
finfo("Configuring with %d sectors/cluster...\n",
|
||||
1 << fmt->ff_clustshift);
|
||||
|
||||
/* Check if FAT12 has not been excluded */
|
||||
|
||||
+1
-1
@@ -1397,7 +1397,7 @@ static int fat_dup(FAR const struct file *oldp, FAR struct file *newp)
|
||||
FAR struct fat_file_s *newff;
|
||||
int ret;
|
||||
|
||||
fvdbg("Dup %p->%p\n", oldp, newp);
|
||||
finfo("Dup %p->%p\n", oldp, newp);
|
||||
|
||||
/* Sanity checks */
|
||||
|
||||
|
||||
@@ -573,11 +573,11 @@ int fat_mount(struct fat_mountpt_s *fs, bool writeable)
|
||||
*/
|
||||
|
||||
uint8_t part = PART_GETTYPE(i, fs->fs_buffer);
|
||||
fvdbg("Partition %d, offset %d, type %d\n", i, PART_ENTRY(i), part);
|
||||
finfo("Partition %d, offset %d, type %d\n", i, PART_ENTRY(i), part);
|
||||
|
||||
if (part == 0)
|
||||
{
|
||||
fvdbg("No partition %d\n", i);
|
||||
finfo("No partition %d\n", i);
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -606,13 +606,13 @@ int fat_mount(struct fat_mountpt_s *fs, bool writeable)
|
||||
{
|
||||
/* Break out of the loop if a valid boot record is found */
|
||||
|
||||
fvdbg("MBR found in partition %d\n", i);
|
||||
finfo("MBR found in partition %d\n", i);
|
||||
break;
|
||||
}
|
||||
|
||||
/* Re-read sector 0 so that we can check the next partition */
|
||||
|
||||
fvdbg("Partition %d is not an MBR\n", i);
|
||||
finfo("Partition %d is not an MBR\n", i);
|
||||
ret = fat_hwread(fs, fs->fs_buffer, 0, 1);
|
||||
if (ret < 0)
|
||||
{
|
||||
@@ -1875,7 +1875,7 @@ int fat_currentsector(struct fat_mountpt_s *fs, struct fat_file_s *ff,
|
||||
|
||||
ff->ff_sectorsincluster = fs->fs_fatsecperclus - sectoroffset;
|
||||
|
||||
fvdbg("position=%d currentsector=%d sectorsincluster=%d\n",
|
||||
finfo("position=%d currentsector=%d sectorsincluster=%d\n",
|
||||
position, ff->ff_currentsector, ff->ff_sectorsincluster);
|
||||
|
||||
return OK;
|
||||
|
||||
Reference in New Issue
Block a user