s3: use dump_data in query FILE_BASIC_UNIX_INFO
authorVolker Lendecke <vl@samba.org>
Sun, 25 Jul 2010 17:11:30 +0000 (19:11 +0200)
committerVolker Lendecke <vl@samba.org>
Sun, 25 Jul 2010 18:45:46 +0000 (20:45 +0200)
Jeremy, please check! To me this is a lot more readable than the decimal
listing of the bytes.

source3/smbd/trans2.c

index b81eb837befa3c29b5010d48f1964370a4017cc7..12a27b174b2dd3d6f685be24447f7b4085276f27 100644 (file)
@@ -4754,14 +4754,9 @@ NTSTATUS smbd_do_qfilepathinfo(connection_struct *conn,
                        pdata = store_file_unix_basic(conn, pdata, fsp, psbuf);
                        data_size = PTR_DIFF(pdata,(*ppdata));
 
-                       {
-                               int i;
-                               DEBUG(4,("smbd_do_qfilepathinfo: SMB_QUERY_FILE_UNIX_BASIC "));
-
-                               for (i=0; i<100; i++)
-                                       DEBUG(4,("%d=%x, ",i, (*ppdata)[i]));
-                               DEBUG(4,("\n"));
-                       }
+                       DEBUG(4,("smbd_do_qfilepathinfo: "
+                                "SMB_QUERY_FILE_UNIX_BASIC\n"));
+                       dump_data(4, (uint8_t *)(*ppdata), data_size);
 
                        break;