Fix fallout from previous error output changes.

(Logical change 1.503)
edge.strict_endians
cantab.net!aia21 2004-08-19 21:01:11 +00:00
parent 930e056c02
commit d33e7eaae4
5 changed files with 16 additions and 11 deletions

View File

@ -495,7 +495,8 @@ s64 ntfs_device_size_get(struct ntfs_device *dev, int block_size)
if (dev->d_ops->ioctl(dev, FDGETPRM, &this_floppy) >= 0) {
Dprintf("FDGETPRM nr 512 byte blocks = %lu (0x%lx)\n",
this_floppy.size, this_floppy.size);
(unsigned long)this_floppy.size,
(unsigned long)this_floppy.size);
return (s64)this_floppy.size * 512 / block_size;
}
}

View File

@ -663,7 +663,7 @@ int ntfs_readdir(ntfs_inode *dir_ni, s64 *pos,
parent_mref = ntfs_mft_get_parent_ref(dir_ni);
if (parent_mref == ERR_MREF(-1)) {
Dprintf("Parent directory not found: %s\n", errno);
Dperror("Parent directory not found");
goto dir_err_out;
}

View File

@ -303,8 +303,8 @@ runlist *ntfs_cluster_alloc(ntfs_volume *vol, s64 count, LCN start_lcn,
*/
Dprintf("%s(): Adding run (lcn 0x%llx, len 0x%llx), "
"prev_lcn = 0x%llx, lcn = 0x%llx, "
"bmp_pos = 0x%llx, prev_run_len = 0x%x, "
"rlpos = %i.\n", __FUNCTION__,
"bmp_pos = 0x%llx, prev_run_len = "
"0x%llx, rlpos = %i.\n", __FUNCTION__,
(long long)(lcn + bmp_pos), 1LL,
(long long)prev_lcn, (long long)lcn,
(long long)bmp_pos,
@ -600,8 +600,8 @@ switch_to_data1_zone: search_zone = 2;
}
break;
case 4:
Dprintf("%s(): Switching from data2 zone to "
"data1 zone.\n");
Dputs("Switching from data2 zone to data1 "
"zone.");
/* Update data2 zone position. */
if (rlpos) {
LCN tc;
@ -701,9 +701,9 @@ switch_to_data1_zone: search_zone = 2;
(long long)zone_end,
(long long)vol->data1_zone_pos);
}
Dprintf("%s(): After outer while loop.\n");
Dputs("After outer while loop.");
done_ret:
Dprintf("%s(): At done_ret.\n");
Dputs("At done_ret.");
/* Add runlist terminator element. */
rl[rlpos].vcn = rl[rlpos - 1].vcn + rl[rlpos - 1].length;
rl[rlpos].lcn = LCN_RL_NOT_MAPPED;
@ -725,7 +725,7 @@ done_ret:
}
}
done_err_ret:
Dprintf("%s(): At done_err_ret (follows done_ret).\n");
Dputs("At done_err_ret (follows done_ret).n");
free(buf);
/* Done! */
if (!err)

View File

@ -397,12 +397,12 @@ ntfs_volume *ntfs_volume_startup(struct ntfs_device *dev, unsigned long rwflag)
{
LCN mft_zone_size, mft_lcn;
s64 br;
const char *OK = "OK";
const char *FAILED = "FAILED";
ntfs_volume *vol;
NTFS_BOOT_SECTOR *bs;
int eo;
#ifdef DEBUG
const char *OK = "OK";
const char *FAILED = "FAILED";
BOOL debug = 1;
#else
BOOL debug = 0;
@ -585,8 +585,10 @@ error_exit:
ntfs_volume *ntfs_device_mount(struct ntfs_device *dev, unsigned long rwflag)
{
s64 l;
#ifdef DEBUG
const char *OK = "OK";
const char *FAILED = "FAILED";
#endif
ntfs_volume *vol;
u8 *m = NULL, *m2 = NULL;
ntfs_attr_search_ctx *ctx = NULL;

View File

@ -55,7 +55,9 @@
static const char *EXEC_NAME = "ntfsundelete";
static const char *MFTFILE = "mft";
#ifdef DEBUG
static const char *UNNAMED = "<unnamed>";
#endif
static const char *NONE = "<none>";
static const char *UNKNOWN = "unknown";
static struct options opts;