From: Volker Lendecke Date: Wed, 14 Jan 2026 07:28:57 +0000 (+0100) Subject: smbd: Modernize a few DEBUGs X-Git-Tag: tdb-1.4.15~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9766169d87d6bf8137bdda1a2018b373d615a27b;p=thirdparty%2Fsamba.git smbd: Modernize a few DEBUGs Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/lib/sysquotas.c b/source3/lib/sysquotas.c index ba8234165bd..12573eb554a 100644 --- a/source3/lib/sysquotas.c +++ b/source3/lib/sysquotas.c @@ -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; } diff --git a/source3/smbd/smb1_utils.c b/source3/smbd/smb1_utils.c index 5c45d526d05..56153cdd634 100644 --- a/source3/smbd/smb1_utils.c +++ b/source3/smbd/smb1_utils.c @@ -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; }