]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libsmb: Modernize two DEBUGs
authorVolker Lendecke <vl@samba.org>
Mon, 5 Aug 2024 15:11:43 +0000 (17:11 +0200)
committerVolker Lendecke <vl@samba.org>
Tue, 20 Aug 2024 09:34:39 +0000 (09:34 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
source3/libsmb/clirap.c

index b10dbd56bdf78b8ca5edd95853d2098501ce12d9..f40397a4eaf7074457065f369edb5e54dace0a14 100644 (file)
@@ -468,7 +468,7 @@ bool cli_oem_change_password(struct cli_state *cli, const char *user, const char
        int rc;
 
        if (strlen(user) >= sizeof(fstring)-1) {
-               DEBUG(0,("cli_oem_change_password: user name %s is too long.\n", user));
+               DBG_ERR("user name %s is too long.\n", user);
                return False;
        }
 
@@ -532,8 +532,7 @@ bool cli_oem_change_password(struct cli_state *cli, const char *user, const char
                     (char *)data, data_len, 0,         /* data, length, max */
                     &rparam, &rprcnt,
                     &rdata, &rdrcnt)) {
-               DEBUG(0,("cli_oem_change_password: Failed to send password change for user %s\n",
-                       user ));
+               DBG_ERR("Failed to send password change for user %s\n", user);
                return False;
        }