[Kernel] Added some traces

Christian Costa titan.costa at wanadoo.fr
Thu May 20 06:51:09 CDT 2004


Hi,

Here is some traces that were usefull when debugging install issues.

Bye,
Christian

Changelog:
Added some traces to kernel file functions.

Christian Costa   titan.costa at wanadoo.fr

-------------- next part --------------
Index: file.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/file.c,v
retrieving revision 1.19
diff -u -r1.19 file.c
--- file.c	13 May 2004 20:21:25 -0000	1.19
+++ file.c	20 May 2004 09:40:34 -0000
@@ -1398,6 +1398,8 @@
     IO_STATUS_BLOCK io;
     NTSTATUS status;
 
+    TRACE("%s %d %p %d %p %lx\n", debugstr_w(filename), level, data, search_op, filter, flags);
+
     if ((search_op != FindExSearchNameMatch) || (flags != 0))
     {
         FIXME("options not implemented 0x%08x 0x%08lx\n", search_op, flags );
@@ -1495,6 +1497,8 @@
     FILE_BOTH_DIR_INFORMATION *dir_info;
     BOOL ret = FALSE;
 
+    TRACE("%p %p\n", handle, data);
+    
     if (handle == INVALID_HANDLE_VALUE)
     {
         SetLastError( ERROR_INVALID_HANDLE );
@@ -1679,6 +1683,8 @@
     OBJECT_ATTRIBUTES attr;
     NTSTATUS status;
 
+    TRACE("%s\n", debugstr_w(name));
+
     if (!RtlDosPathNameToNtPathName_U( name, &nt_name, NULL, NULL ))
     {
         SetLastError( ERROR_PATH_NOT_FOUND );
@@ -1728,6 +1734,8 @@
     NTSTATUS status;
     HANDLE handle;
 
+    TRACE("%s %lx\n", debugstr_w(name), attributes);
+
     if (!RtlDosPathNameToNtPathName_U( name, &nt_name, NULL, NULL ))
     {
         SetLastError( ERROR_PATH_NOT_FOUND );
@@ -1782,6 +1790,8 @@
     UNICODE_STRING nt_name;
     OBJECT_ATTRIBUTES attr;
     NTSTATUS status;
+    
+    TRACE("%s %d %p\n", debugstr_w(name), level, ptr);
 
     if (level != GetFileExInfoStandard)
     {
@@ -1853,6 +1863,8 @@
     NTSTATUS status;
     HANDLE handle;
     DWORD ret = INVALID_FILE_SIZE;
+
+    TRACE("%s %p\n", debugstr_w(name), size_high);
 
     if (!RtlDosPathNameToNtPathName_U( name, &nt_name, NULL, NULL ))
     {


More information about the wine-patches mailing list