]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Modernize two DEBUG statements
authorVolker Lendecke <vl@samba.org>
Thu, 22 Jun 2023 09:19:29 +0000 (11:19 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 30 Jun 2023 10:42:36 +0000 (10:42 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/smbd/dir.c

index 6ad2d5c94843d3362980d92c7e7f2b2413aa1f50..cb774ff55b68c3023c818f445e701b9405ae21e4 100644 (file)
@@ -793,8 +793,11 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
                }
 
                if (!dir_check_ftype(mode, dirtype)) {
-                       DEBUG(5,("[%s] attribs 0x%x didn't match 0x%x\n",
-                               fname, (unsigned int)mode, (unsigned int)dirtype));
+                       DBG_INFO("[%s] attribs 0x%" PRIx32 " didn't match "
+                                "0x%" PRIx32 "\n",
+                                fname,
+                                mode,
+                                dirtype);
                        TALLOC_FREE(smb_fname);
                        TALLOC_FREE(dname);
                        TALLOC_FREE(fname);
@@ -814,10 +817,11 @@ bool smbd_dirptr_get_entry(TALLOC_CTX *ctx,
                        }
                }
 
-               DEBUG(3,("smbd_dirptr_get_entry mask=[%s] found %s "
-                       "fname=%s (%s)\n",
-                       mask, smb_fname_str_dbg(smb_fname),
-                       dname, fname));
+               DBG_NOTICE("mask=[%s] found %s fname=%s (%s)\n",
+                          mask,
+                          smb_fname_str_dbg(smb_fname),
+                          dname,
+                          fname);
 
                TALLOC_FREE(dname);