netsamlogon_cache: Improve a DBG message
authorVolker Lendecke <vl@samba.org>
Sat, 13 Oct 2018 08:58:32 +0000 (10:58 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 17 Oct 2018 17:22:19 +0000 (19:22 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/libsmb/samlogon_cache.c

index d6889775d24402575d4ddb60999dfe3644286cc1..9638df646f00ac5eb2b412e45cd2dca6608c3aaf 100644 (file)
@@ -209,7 +209,8 @@ bool netsamlogon_cache_store(const char *username, struct netr_SamInfo3 *info3)
        ndr_err = ndr_push_struct_blob(&blob, tmp_ctx, &r,
                                       (ndr_push_flags_fn_t)ndr_push_netsamlogoncache_entry);
        if (!NDR_ERR_CODE_IS_SUCCESS(ndr_err)) {
-               DEBUG(0,("netsamlogon_cache_store: failed to push entry to cache\n"));
+               DBG_WARNING("failed to push entry to cache: %s\n",
+                           ndr_errstr(ndr_err));
                goto fail;
        }