Changeset d70d80ed in mainline for uspace/srv/fs/fat/fat_fat.c


Ignore:
Timestamp:
2010-11-27T17:51:00Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ea28272, f0e1ac9
Parents:
a6ba0c9
Message:

Remove accidentally commited debugging code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/fat/fat_fat.c

    ra6ba0c9 rd70d80ed  
    671671        int rc;
    672672
    673         printf("fat_sanity_check() begin\n");
    674 
    675673        /* Check number of FATs. */
    676674        if (bs->fatcnt == 0)
     
    679677        /* Check total number of sectors. */
    680678
    681         printf("fat_sanity_check() totsec\n");
    682 
    683679        if (bs->totsec16 == 0 && bs->totsec32 == 0)
    684680                return ENOTSUP;
    685 
    686         printf("fat_sanity_check() totsec16 vs 32\n");
    687681
    688682        if (bs->totsec16 != 0 && bs->totsec32 != 0 &&
     
    690684                return ENOTSUP;
    691685
    692         printf("fat_sanity_check() media descriptor\n");
    693 
    694686        /* Check media descriptor. Must be between 0xf0 and 0xff. */
    695687        if ((bs->mdesc & 0xf0) != 0xf0)
    696688                return ENOTSUP;
    697689
    698         printf("fat_sanity_check() sec_pre_fat\n");
    699 
    700690        /* Check number of sectors per FAT. */
    701691        if (bs->sec_per_fat == 0)
    702692                return ENOTSUP;
    703 
    704         printf("fat_sanity_check() root dir size\n");
    705693
    706694        /*
     
    717705        /* Check signature of each FAT. */
    718706
    719         printf("fat_sanity_check() FAT signatures\n");
    720 
    721707        for (fat_no = 0; fat_no < bs->fatcnt; fat_no++) {
    722                 printf("fat_sanity_check() read cluster 0\n");
    723708                rc = fat_get_cluster(bs, devmap_handle, fat_no, 0, &e0);
    724709                if (rc != EOK)
    725710                        return EIO;
    726711
    727                 printf("fat_sanity_check() read cluster 1\n");
    728712                rc = fat_get_cluster(bs, devmap_handle, fat_no, 1, &e1);
    729713                if (rc != EOK)
    730714                        return EIO;
    731715
    732                 printf("fat_sanity_check() check FAT mdesc\n");
    733716                /* Check that first byte of FAT contains the media descriptor. */
    734717                if ((e0 & 0xff) != bs->mdesc)
    735718                        return ENOTSUP;
    736 
    737                 printf("fat_sanity_check() e0/e1\n");
    738719
    739720                /*
     
    744725                        return ENOTSUP;
    745726        }
    746         printf("fat_sanity_check() succeeded\n");
    747727
    748728        return EOK;
Note: See TracChangeset for help on using the changeset viewer.