Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/fs/udf/udf_volume.c

    r5c702a8 r44ecf89  
    6363fs_index_t udf_long_ad_to_pos(udf_instance_t *instance, udf_long_ad_t *long_ad)
    6464{
    65         log_msg(LVL_DEBUG, "Long_Ad to Pos: "
     65        log_msg(LOG_DEFAULT, LVL_DEBUG, "Long_Ad to Pos: "
    6666            "partition_num=%" PRIu16 ", partition_block=%" PRIu32,
    6767            FLE16(long_ad->location.partition_num),
     
    130130                    (str_lcmp(VRS_NSR3, (char *) vd->identifier, VRS_ID_LEN) == 0)) {
    131131                        nsr_found = true;
    132                         log_msg(LVL_DEBUG, "VRS: NSR found");
     132                        log_msg(LOG_DEFAULT, LVL_DEBUG, "VRS: NSR found");
    133133                        continue;
    134134                }
    135135               
    136136                if (str_lcmp(VRS_END, (char *) vd->identifier, VRS_ID_LEN) == 0) {
    137                         log_msg(LVL_DEBUG, "VRS: end found");
     137                        log_msg(LOG_DEFAULT, LVL_DEBUG, "VRS: end found");
    138138                        break;
    139139                }
     
    262262                 * and Descriptor char set field.
    263263                 */
    264                 if ((bcmp((uint8_t *) pvd[i].volume_id,
     264                if ((memcmp((uint8_t *) pvd[i].volume_id,
    265265                    (uint8_t *) desc->volume_id, 32) == 0) &&
    266                     (bcmp((uint8_t *) pvd[i].volume_set_id,
     266                    (memcmp((uint8_t *) pvd[i].volume_set_id,
    267267                    (uint8_t *) desc->volume_set_id, 128) == 0) &&
    268                     (bcmp((uint8_t *) &pvd[i].descriptor_charset,
     268                    (memcmp((uint8_t *) &pvd[i].descriptor_charset,
    269269                    (uint8_t *) &desc->descriptor_charset, 64) == 0) &&
    270270                    (FLE32(desc->sequence_number) > FLE32(pvd[i].sequence_number))) {
     
    301301                 * Logic Volume Identifier and Descriptor char set field.
    302302                 */
    303                 if ((bcmp((uint8_t *) lvd[i].logical_volume_id,
     303                if ((memcmp((uint8_t *) lvd[i].logical_volume_id,
    304304                    (uint8_t *) desc->logical_volume_id, 128) == 0) &&
    305                     (bcmp((uint8_t *) &lvd[i].charset,
     305                    (memcmp((uint8_t *) &lvd[i].charset,
    306306                    (uint8_t *) &desc->charset, 64) == 0) &&
    307307                    (FLE32(desc->sequence_number) > FLE32(lvd[i].sequence_number))) {
     
    382382        switch (FLE16(desc->id)) {
    383383        case UDF_FILE_ENTRY:
    384                 log_msg(LVL_DEBUG, "ICB: File entry descriptor found");
     384                log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: File entry descriptor found");
    385385               
    386386                udf_file_entry_descriptor_t *fed =
     
    394394               
    395395        case UDF_EFILE_ENTRY:
    396                 log_msg(LVL_DEBUG, "ICB: Extended file entry descriptor found");
     396                log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: Extended file entry descriptor found");
    397397               
    398398                udf_extended_file_entry_descriptor_t *efed =
     
    514514                                    &instance->partitions[j];
    515515                               
    516                                 log_msg(LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "
     516                                log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "
    517517                                    "found and filled", i, pm1->partition_map_type);
    518518                               
     
    531531                                    (udf_metadata_partition_map_t *) idx;
    532532                               
    533                                 log_msg(LVL_DEBUG, "Metadata file location=%u",
     533                                log_msg(LOG_DEFAULT, LVL_DEBUG, "Metadata file location=%u",
    534534                                    FLE32(metadata->metadata_fileloc));
    535535                               
     
    569569                                    &instance->partitions[j];
    570570                               
    571                                 log_msg(LVL_DEBUG, "Virtual partition: num=%d, start=%d",
     571                                log_msg(LOG_DEFAULT, LVL_DEBUG, "Virtual partition: num=%d, start=%d",
    572572                                    instance->partitions[j].number,
    573573                                    instance->partitions[j].start);
    574                                 log_msg(LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "
     574                                log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "
    575575                                    "found and filled", i, pm2->partition_map_type);
    576576                               
     
    583583                        udf_general_type_t *pm = (udf_general_type_t *) idx;
    584584                       
    585                         log_msg(LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "
     585                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "
    586586                            "found and skipped", i, pm->partition_map_type);
    587587                       
     
    657657                /* One sector size descriptors */
    658658                case UDF_TAG_PVD:
    659                         log_msg(LVL_DEBUG, "Volume: Primary volume descriptor found");
     659                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Primary volume descriptor found");
    660660                       
    661661                        if (!udf_check_prevailing_pvd(pvd, pvd_cnt, &vol->volume)) {
     
    669669                       
    670670                case UDF_TAG_VDP:
    671                         log_msg(LVL_DEBUG, "Volume: Volume descriptor pointer found");
     671                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Volume descriptor pointer found");
    672672                        pos++;
    673673                        break;
    674674                       
    675675                case UDF_TAG_IUVD:
    676                         log_msg(LVL_DEBUG,
     676                        log_msg(LOG_DEFAULT, LVL_DEBUG,
    677677                            "Volume: Implementation use volume descriptor found");
    678678                        pos++;
     
    680680                       
    681681                case UDF_TAG_PD:
    682                         log_msg(LVL_DEBUG, "Volume: Partition descriptor found");
    683                         log_msg(LVL_DEBUG, "Partition number: %u, contents: '%.6s', "
     682                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Partition descriptor found");
     683                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Partition number: %u, contents: '%.6s', "
    684684                            "access type: %" PRIu32, FLE16(vol->partition.number),
    685685                            vol->partition.contents.id, FLE32(vol->partition.access_type));
    686                         log_msg(LVL_DEBUG, "Partition start: %" PRIu32 " (sector), "
     686                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Partition start: %" PRIu32 " (sector), "
    687687                            "size: %" PRIu32 " (sectors)",
    688688                            FLE32(vol->partition.starting_location),
     
    698698                            (udf_partition_header_descriptor_t *) vol->partition.contents_use;
    699699                        if (FLE32(phd->unallocated_space_table.length)) {
    700                                 log_msg(LVL_DEBUG,
     700                                log_msg(LOG_DEFAULT, LVL_DEBUG,
    701701                                    "space table: length=%" PRIu32 ", pos=%" PRIu32,
    702702                                    FLE32(phd->unallocated_space_table.length),
     
    712712                       
    713713                        if (FLE32(phd->unallocated_space_bitmap.length)) {
    714                                 log_msg(LVL_DEBUG,
     714                                log_msg(LOG_DEFAULT, LVL_DEBUG,
    715715                                    "space bitmap: length=%" PRIu32 ", pos=%" PRIu32,
    716716                                    FLE32(phd->unallocated_space_bitmap.length),
     
    730730                /* Relative size descriptors */
    731731                case UDF_TAG_LVD:
    732                         log_msg(LVL_DEBUG, "Volume: Logical volume descriptor found");
     732                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Logical volume descriptor found");
    733733                       
    734734                        aoff64_t sct =
     
    743743                            &vol->logical.charset);
    744744                       
    745                         log_msg(LVL_DEBUG, "Logical Volume ID: '%s', "
     745                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Logical Volume ID: '%s', "
    746746                            "logical block size: %" PRIu32 " (bytes)", tmp,
    747747                            FLE32(vol->logical.logical_block_size));
    748                         log_msg(LVL_DEBUG, "Map table size: %" PRIu32 " (bytes), "
     748                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Map table size: %" PRIu32 " (bytes), "
    749749                            "number of partition maps: %" PRIu32,
    750750                            FLE32(vol->logical.map_table_length),
     
    761761                       
    762762                case UDF_TAG_USD:
    763                         log_msg(LVL_DEBUG, "Volume: Unallocated space descriptor found");
     763                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Unallocated space descriptor found");
    764764                       
    765765                        sct = ALL_UP((sizeof(udf_unallocated_space_descriptor_t) +
     
    780780                       
    781781                case UDF_TAG_LVID:
    782                         log_msg(LVL_DEBUG,
     782                        log_msg(LOG_DEFAULT, LVL_DEBUG,
    783783                            "Volume: Logical volume integrity descriptor found");
    784784                       
     
    787787                       
    788788                case UDF_TAG_TD:
    789                         log_msg(LVL_DEBUG, "Volume: Terminating descriptor found");
     789                        log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Terminating descriptor found");
    790790                       
    791791                        /* Found terminating descriptor. Exiting */
     
    823823                udf_descriptor_tag_t *desc = block->data;
    824824               
    825                 log_msg(LVL_DEBUG, "First tag ID=%" PRIu16, desc->id);
     825                log_msg(LOG_DEFAULT, LVL_DEBUG, "First tag ID=%" PRIu16, desc->id);
    826826               
    827827                if (desc->checksum != udf_tag_checksum((uint8_t *) desc)) {
Note: See TracChangeset for help on using the changeset viewer.