From fa961c737b98a6ab6b43f5c7499be753d66f2b44 Mon Sep 17 00:00:00 2001 From: szaka Date: Mon, 16 Jul 2007 20:39:26 +0000 Subject: [PATCH] ntfs_mft_record_layout: log all errors --- libntfs-3g/mft.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libntfs-3g/mft.c b/libntfs-3g/mft.c index 3aedada2..ebfaf019 100644 --- a/libntfs-3g/mft.c +++ b/libntfs-3g/mft.c @@ -299,6 +299,7 @@ int ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref, if (!vol || !mrec) { errno = EINVAL; + ntfs_log_perror("%s: mrec=%p", __FUNCTION__, mrec); return -1; } /* Aligned to 2-byte boundary. */ @@ -307,8 +308,8 @@ int ntfs_mft_record_layout(const ntfs_volume *vol, const MFT_REF mref, else { /* Abort if mref is > 32 bits. */ if (MREF(mref) & 0x0000ffff00000000ull) { - ntfs_log_debug("Mft reference exceeds 32 bits!\n"); errno = ERANGE; + ntfs_log_perror("Mft reference exceeds 32 bits"); return -1; } mrec->usa_ofs = cpu_to_le16((sizeof(MFT_RECORD) + 1) & ~1);