parent
b36be2a790
commit
717484f223
|
@ -779,7 +779,8 @@ static void dump_non_resident_attr(ATTR_RECORD *a)
|
|||
printf("Lowest VCN = %lli (0x%llx)\n", (long long)l,
|
||||
(unsigned long long)l);
|
||||
l = sle64_to_cpu(a->highest_vcn);
|
||||
printf("Highest VCN = %lli (0x%llx)\n", l, l);
|
||||
printf("Highest VCN = %lli (0x%llx)\n", (long long)l,
|
||||
(unsigned long long)l);
|
||||
printf("Mapping pairs array offset = 0x%x\n",
|
||||
le16_to_cpu(a->mapping_pairs_offset));
|
||||
printf("Compression unit = 0x%x: %sCOMPRESSED\n", a->compression_unit,
|
||||
|
|
|
@ -355,8 +355,9 @@ void ntfs_dump_standard_information_attr(ntfs_inode *inode)
|
|||
printf("\tSecurity ID: \t\t\t %u \n",
|
||||
le32_to_cpu(standard_attr->security_id));
|
||||
} else {
|
||||
printf("\tSize of STANDARD_INFORMATION is %u. It should be either 72 or 48, \
|
||||
something is wrong...\n", sizeof(STANDARD_INFORMATION));
|
||||
printf("\tSize of STANDARD_INFORMATION is %u. It should be "
|
||||
"either 72 or 48, something is wrong...\n",
|
||||
(unsigned)sizeof(STANDARD_INFORMATION));
|
||||
}
|
||||
|
||||
ntfs_attr_put_search_ctx(ctx); //free ctx
|
||||
|
|
|
@ -300,9 +300,9 @@ int change_label(ntfs_volume *vol, unsigned long mnt_flags, char *label, BOOL fo
|
|||
}
|
||||
label_len *= sizeof(uchar_t);
|
||||
if (label_len > 0x100) {
|
||||
fprintf(stderr, "New label is too long. Maximum %i characters "
|
||||
fprintf(stderr, "New label is too long. Maximum %u characters "
|
||||
"allowed. Truncating excess characters.\n",
|
||||
0x100 / sizeof(uchar_t));
|
||||
(unsigned)(0x100 / sizeof(uchar_t)));
|
||||
label_len = 0x100;
|
||||
new_label[label_len / sizeof(uchar_t)] = cpu_to_le16(L'\0');
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue