Author: pschweitzer
Date: Mon Dec  8 18:44:29 2014
New Revision: 65590

URL: http://svn.reactos.org/svn/reactos?rev=65590&view=rev
Log:
[NTFS]
Complete a bit more the information dumped from attributes

Modified:
    trunk/reactos/drivers/filesystems/ntfs/attrib.c

Modified: trunk/reactos/drivers/filesystems/ntfs/attrib.c
URL: 
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/ntfs/attrib.c?rev=65590&r1=65589&r2=65590&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/ntfs/attrib.c     [iso-8859-1] (original)
+++ trunk/reactos/drivers/filesystems/ntfs/attrib.c     [iso-8859-1] Mon Dec  8 
18:44:29 2014
@@ -104,7 +104,23 @@
 //    DbgPrint(" Length %lu  Offset %hu ", Attribute->Resident.ValueLength, 
Attribute->Resident.ValueOffset);
 
     FileNameAttr = (PFILENAME_ATTRIBUTE)((ULONG_PTR)Attribute + 
Attribute->Resident.ValueOffset);
-    DbgPrint(" '%.*S' ", FileNameAttr->NameLength, FileNameAttr->Name);
+    DbgPrint(" (%x) '%.*S' ", FileNameAttr->NameType, 
FileNameAttr->NameLength, FileNameAttr->Name);
+    DbgPrint(" '%x' ", FileNameAttr->FileAttributes);
+}
+
+
+static
+VOID
+NtfsDumpStandardInformationAttribute(PNTFS_ATTR_RECORD Attribute)
+{
+    PSTANDARD_INFORMATION StandardInfoAttr;
+
+    DbgPrint("  $STANDARD_INFORMATION ");
+
+//    DbgPrint(" Length %lu  Offset %hu ", Attribute->Resident.ValueLength, 
Attribute->Resident.ValueOffset);
+
+    StandardInfoAttr = (PSTANDARD_INFORMATION)((ULONG_PTR)Attribute + 
Attribute->Resident.ValueOffset);
+    DbgPrint(" '%x' ", StandardInfoAttr->FileAttribute);
 }
 
 
@@ -182,7 +198,7 @@
             break;
 
         case AttributeStandardInformation:
-            DbgPrint("  $STANDARD_INFORMATION ");
+            NtfsDumpStandardInformationAttribute(Attribute);
             break;
 
         case AttributeAttributeList:


Reply via email to