BOOL compressed;
ntfs_log_enter("Entering for inode 0x%llx, attr 0x%x.\n",
- na->ni->mft_no, le32_to_cpu(na->type));
+ (unsigned long long)na->ni->mft_no,
+ le32_to_cpu(na->type));
if (!na || !na->ni || !na->ni->vol) {
errno = EINVAL;
(long long)(volume_size / 1024));
return FALSE;
}
- ntfs_log_debug("volume size = %llikiB\n", volume_size / 1024);
+ ntfs_log_debug("volume size = %llikiB\n",
+ (long long)(volume_size / 1024));
/* If user didn't specify the cluster size, determine it now. */
if (!vol->cluster_size) {
/*
return FALSE;
}
ntfs_log_debug("number of clusters = %llu (0x%llx)\n",
- vol->nr_clusters, vol->nr_clusters);
+ (unsigned long long)vol->nr_clusters,
+ (unsigned long long)vol->nr_clusters);
/* Number of clusters must fit within 32 bits (Win2k limitation). */
if (vol->nr_clusters >> 32) {
if (vol->cluster_size >= 65536) {
i = (g_lcn_bitmap_byte_size + g_vol->cluster_size - 1) &
~(g_vol->cluster_size - 1);
ntfs_log_debug("g_lcn_bitmap_byte_size = %i, allocated = %llu\n",
- g_lcn_bitmap_byte_size, i);
+ g_lcn_bitmap_byte_size, (unsigned long long)i);
g_dynamic_buf_size = mkntfs_get_page_size();
g_dynamic_buf = (u8*)ntfs_calloc(g_dynamic_buf_size);
if (!g_dynamic_buf)
mft_end = min(mft_end, nr_mft_records - 1);
ntfs_log_debug("MFT records:\n");
- ntfs_log_debug("\tTotal: %8lld\n", nr_mft_records);
+ ntfs_log_debug("\tTotal: %8lld\n", (long long)nr_mft_records);
ntfs_log_debug("\tBegin: %8lld\n", mft_begin);
ntfs_log_debug("\tEnd: %8lld\n", mft_end);
if (middle) {
if (middle[1] == 0) {
b = LONG_MAX; // XXX ULLONG_MAX
- ntfs_log_debug("Range has no end, defaulting to %lld.\n", b);
+ ntfs_log_debug("Range has no end, defaulting to "
+ "%lld.\n", (long long)b);
} else {
if (!utils_parse_size(middle+1, &b, scale))
return 0;
b = a;
}
- ntfs_log_debug("Range '%s' = %lld - %lld\n", string, a, b);
+ ntfs_log_debug("Range '%s' = %lld - %lld\n", string, (long long)a,
+ (long long)b);
*start = a;
*finish = b;
bit = 1 << (mref & 7);
byte = (mref >> 3) & (sizeof(buffer) - 1);
- ntfs_log_debug("cluster = %lld, bmpmref = %lld, byte = %d, bit = %d, in use %d\n", mref, bmpmref, byte, bit, buffer[byte] & bit);
+ ntfs_log_debug("cluster = %lld, bmpmref = %lld, byte = %d, bit = %d, "
+ "in use %d\n", (long long) mref, (long long) bmpmref,
+ byte, bit, buffer[byte] & bit);
return (buffer[byte] & bit);
}