]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Modernize a few DEBUGs
authorVolker Lendecke <vl@samba.org>
Wed, 14 Jan 2026 07:28:57 +0000 (08:28 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Jan 2026 11:53:34 +0000 (11:53 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Anoop C S <anoopcs@samba.org>
source3/lib/sysquotas.c
source3/smbd/smb1_utils.c

index ba8234165bd336feb816a4de0b8204034c6ec408..12573eb554a93cee1de639a875c0a5f04a7b80b9 100644 (file)
@@ -271,7 +271,7 @@ static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t
                _id = id.gid;
                break;
        default:
-               DEBUG(0,("invalid quota type.\n"));
+               DBG_ERR("invalid quota type.\n");
                return -1;
        }
 
@@ -296,7 +296,7 @@ static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t
        if (lines) {
                char *line = lines[0];
 
-               DEBUG (3, ("Read output from get_quota, \"%s\"\n", line));
+               DBG_NOTICE("Read output from get_quota, \"%s\"\n", line);
 
                /* we need to deal with long long unsigned here, if supported */
 
@@ -400,13 +400,13 @@ static int command_get_quota(const char *path, enum SMB_QUOTA_TYPE qtype, unid_t
                return 0;
        }
 
-       DEBUG (0, ("get_quota_command failed!\n"));
+       DBG_ERR("get_quota_command failed!\n");
        return -1;
 
 invalid_param:
 
        TALLOC_FREE(lines);
-       DEBUG(0,("The output of get_quota_command is invalid!\n"));
+       DBG_ERR("The output of get_quota_command is invalid!\n");
        return -1;
 }
 
index 5c45d526d05abf40df91ec79dfe688c615cb9310..56153cdd634913813c9e326d43469bf64b628b53 100644 (file)
@@ -174,7 +174,7 @@ ssize_t message_push_string(uint8_t **outbuf, const char *str, int flags)
 
        if (!(tmp = talloc_realloc(NULL, *outbuf, uint8_t,
                                         buf_size + grow_size))) {
-               DEBUG(0, ("talloc failed\n"));
+               DBG_ERR("talloc failed\n");
                return -1;
        }
 
@@ -182,7 +182,7 @@ ssize_t message_push_string(uint8_t **outbuf, const char *str, int flags)
                             tmp + buf_size, str, grow_size, flags, &result);
 
        if (!NT_STATUS_IS_OK(status)) {
-               DEBUG(0, ("srvstr_push failed\n"));
+               DBG_ERR("srvstr_push failed\n");
                return -1;
        }