Changes in uspace/srv/fs/udf/udf_volume.c [5c702a8:44ecf89] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/fs/udf/udf_volume.c
r5c702a8 r44ecf89 63 63 fs_index_t udf_long_ad_to_pos(udf_instance_t *instance, udf_long_ad_t *long_ad) 64 64 { 65 log_msg(L VL_DEBUG, "Long_Ad to Pos: "65 log_msg(LOG_DEFAULT, LVL_DEBUG, "Long_Ad to Pos: " 66 66 "partition_num=%" PRIu16 ", partition_block=%" PRIu32, 67 67 FLE16(long_ad->location.partition_num), … … 130 130 (str_lcmp(VRS_NSR3, (char *) vd->identifier, VRS_ID_LEN) == 0)) { 131 131 nsr_found = true; 132 log_msg(L VL_DEBUG, "VRS: NSR found");132 log_msg(LOG_DEFAULT, LVL_DEBUG, "VRS: NSR found"); 133 133 continue; 134 134 } 135 135 136 136 if (str_lcmp(VRS_END, (char *) vd->identifier, VRS_ID_LEN) == 0) { 137 log_msg(L VL_DEBUG, "VRS: end found");137 log_msg(LOG_DEFAULT, LVL_DEBUG, "VRS: end found"); 138 138 break; 139 139 } … … 262 262 * and Descriptor char set field. 263 263 */ 264 if (( bcmp((uint8_t *) pvd[i].volume_id,264 if ((memcmp((uint8_t *) pvd[i].volume_id, 265 265 (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, 267 267 (uint8_t *) desc->volume_set_id, 128) == 0) && 268 ( bcmp((uint8_t *) &pvd[i].descriptor_charset,268 (memcmp((uint8_t *) &pvd[i].descriptor_charset, 269 269 (uint8_t *) &desc->descriptor_charset, 64) == 0) && 270 270 (FLE32(desc->sequence_number) > FLE32(pvd[i].sequence_number))) { … … 301 301 * Logic Volume Identifier and Descriptor char set field. 302 302 */ 303 if (( bcmp((uint8_t *) lvd[i].logical_volume_id,303 if ((memcmp((uint8_t *) lvd[i].logical_volume_id, 304 304 (uint8_t *) desc->logical_volume_id, 128) == 0) && 305 ( bcmp((uint8_t *) &lvd[i].charset,305 (memcmp((uint8_t *) &lvd[i].charset, 306 306 (uint8_t *) &desc->charset, 64) == 0) && 307 307 (FLE32(desc->sequence_number) > FLE32(lvd[i].sequence_number))) { … … 382 382 switch (FLE16(desc->id)) { 383 383 case UDF_FILE_ENTRY: 384 log_msg(L VL_DEBUG, "ICB: File entry descriptor found");384 log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: File entry descriptor found"); 385 385 386 386 udf_file_entry_descriptor_t *fed = … … 394 394 395 395 case UDF_EFILE_ENTRY: 396 log_msg(L VL_DEBUG, "ICB: Extended file entry descriptor found");396 log_msg(LOG_DEFAULT, LVL_DEBUG, "ICB: Extended file entry descriptor found"); 397 397 398 398 udf_extended_file_entry_descriptor_t *efed = … … 514 514 &instance->partitions[j]; 515 515 516 log_msg(L VL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "516 log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] " 517 517 "found and filled", i, pm1->partition_map_type); 518 518 … … 531 531 (udf_metadata_partition_map_t *) idx; 532 532 533 log_msg(L VL_DEBUG, "Metadata file location=%u",533 log_msg(LOG_DEFAULT, LVL_DEBUG, "Metadata file location=%u", 534 534 FLE32(metadata->metadata_fileloc)); 535 535 … … 569 569 &instance->partitions[j]; 570 570 571 log_msg(L VL_DEBUG, "Virtual partition: num=%d, start=%d",571 log_msg(LOG_DEFAULT, LVL_DEBUG, "Virtual partition: num=%d, start=%d", 572 572 instance->partitions[j].number, 573 573 instance->partitions[j].start); 574 log_msg(L VL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "574 log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] " 575 575 "found and filled", i, pm2->partition_map_type); 576 576 … … 583 583 udf_general_type_t *pm = (udf_general_type_t *) idx; 584 584 585 log_msg(L VL_DEBUG, "Volume[%" PRIun "]: partition [type %u] "585 log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume[%" PRIun "]: partition [type %u] " 586 586 "found and skipped", i, pm->partition_map_type); 587 587 … … 657 657 /* One sector size descriptors */ 658 658 case UDF_TAG_PVD: 659 log_msg(L VL_DEBUG, "Volume: Primary volume descriptor found");659 log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Primary volume descriptor found"); 660 660 661 661 if (!udf_check_prevailing_pvd(pvd, pvd_cnt, &vol->volume)) { … … 669 669 670 670 case UDF_TAG_VDP: 671 log_msg(L VL_DEBUG, "Volume: Volume descriptor pointer found");671 log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Volume descriptor pointer found"); 672 672 pos++; 673 673 break; 674 674 675 675 case UDF_TAG_IUVD: 676 log_msg(L VL_DEBUG,676 log_msg(LOG_DEFAULT, LVL_DEBUG, 677 677 "Volume: Implementation use volume descriptor found"); 678 678 pos++; … … 680 680 681 681 case UDF_TAG_PD: 682 log_msg(L VL_DEBUG, "Volume: Partition descriptor found");683 log_msg(L VL_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', " 684 684 "access type: %" PRIu32, FLE16(vol->partition.number), 685 685 vol->partition.contents.id, FLE32(vol->partition.access_type)); 686 log_msg(L VL_DEBUG, "Partition start: %" PRIu32 " (sector), "686 log_msg(LOG_DEFAULT, LVL_DEBUG, "Partition start: %" PRIu32 " (sector), " 687 687 "size: %" PRIu32 " (sectors)", 688 688 FLE32(vol->partition.starting_location), … … 698 698 (udf_partition_header_descriptor_t *) vol->partition.contents_use; 699 699 if (FLE32(phd->unallocated_space_table.length)) { 700 log_msg(L VL_DEBUG,700 log_msg(LOG_DEFAULT, LVL_DEBUG, 701 701 "space table: length=%" PRIu32 ", pos=%" PRIu32, 702 702 FLE32(phd->unallocated_space_table.length), … … 712 712 713 713 if (FLE32(phd->unallocated_space_bitmap.length)) { 714 log_msg(L VL_DEBUG,714 log_msg(LOG_DEFAULT, LVL_DEBUG, 715 715 "space bitmap: length=%" PRIu32 ", pos=%" PRIu32, 716 716 FLE32(phd->unallocated_space_bitmap.length), … … 730 730 /* Relative size descriptors */ 731 731 case UDF_TAG_LVD: 732 log_msg(L VL_DEBUG, "Volume: Logical volume descriptor found");732 log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Logical volume descriptor found"); 733 733 734 734 aoff64_t sct = … … 743 743 &vol->logical.charset); 744 744 745 log_msg(L VL_DEBUG, "Logical Volume ID: '%s', "745 log_msg(LOG_DEFAULT, LVL_DEBUG, "Logical Volume ID: '%s', " 746 746 "logical block size: %" PRIu32 " (bytes)", tmp, 747 747 FLE32(vol->logical.logical_block_size)); 748 log_msg(L VL_DEBUG, "Map table size: %" PRIu32 " (bytes), "748 log_msg(LOG_DEFAULT, LVL_DEBUG, "Map table size: %" PRIu32 " (bytes), " 749 749 "number of partition maps: %" PRIu32, 750 750 FLE32(vol->logical.map_table_length), … … 761 761 762 762 case UDF_TAG_USD: 763 log_msg(L VL_DEBUG, "Volume: Unallocated space descriptor found");763 log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Unallocated space descriptor found"); 764 764 765 765 sct = ALL_UP((sizeof(udf_unallocated_space_descriptor_t) + … … 780 780 781 781 case UDF_TAG_LVID: 782 log_msg(L VL_DEBUG,782 log_msg(LOG_DEFAULT, LVL_DEBUG, 783 783 "Volume: Logical volume integrity descriptor found"); 784 784 … … 787 787 788 788 case UDF_TAG_TD: 789 log_msg(L VL_DEBUG, "Volume: Terminating descriptor found");789 log_msg(LOG_DEFAULT, LVL_DEBUG, "Volume: Terminating descriptor found"); 790 790 791 791 /* Found terminating descriptor. Exiting */ … … 823 823 udf_descriptor_tag_t *desc = block->data; 824 824 825 log_msg(L VL_DEBUG, "First tag ID=%" PRIu16, desc->id);825 log_msg(LOG_DEFAULT, LVL_DEBUG, "First tag ID=%" PRIu16, desc->id); 826 826 827 827 if (desc->checksum != udf_tag_checksum((uint8_t *) desc)) {
Note:
See TracChangeset
for help on using the changeset viewer.