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.
edge.strict_endians
Jean-Pierre André 2013-09-20 16:20:02 +02:00
parent 91a44b438c
commit 5b38218f0b
1 changed files with 2 additions and 1 deletions

View File

@ -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);