From 5b38218f0bab4a8859b58668b6068945393c7369 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jean-Pierre=20Andr=C3=A9?= Date: Fri, 20 Sep 2013 16:20:02 +0200 Subject: [PATCH] Logged more details when an attribute is not found Log the inode number and attribute type when an attribute is not found. This simplifies identifying relevant ones among such log messages. --- libntfs-3g/attrib.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libntfs-3g/attrib.c b/libntfs-3g/attrib.c index 269ccf86..3df3a96a 100644 --- a/libntfs-3g/attrib.c +++ b/libntfs-3g/attrib.c @@ -6588,7 +6588,8 @@ void *ntfs_attr_readall(ntfs_inode *ni, const ATTR_TYPES type, na = ntfs_attr_open(ni, type, name, name_len); if (!na) { - ntfs_log_perror("ntfs_attr_open failed"); + ntfs_log_perror("ntfs_attr_open failed, inode %lld attr 0x%lx", + (long long)ni->mft_no,(long)le32_to_cpu(type)); goto err_exit; } data = ntfs_malloc(na->data_size);