From 042372bc20375f30a292b57bebe1c4d7608339ca Mon Sep 17 00:00:00 2001 From: =?utf8?q?Matthias=20Dieter=20Walln=C3=B6fer?= Date: Fri, 28 Oct 2011 18:20:47 +0200 Subject: [PATCH] s4:lib/registry/regf.c - always generate debug messages on error cases We need to know what is going on. Reviewed-by: Jelmer --- source4/lib/registry/regf.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source4/lib/registry/regf.c b/source4/lib/registry/regf.c index 5ca7b7c66cd..b6a586cf78b 100644 --- a/source4/lib/registry/regf.c +++ b/source4/lib/registry/regf.c @@ -2211,7 +2211,7 @@ WERROR reg_open_regf_file(TALLOC_CTX *parent_ctx, const char *location, pull->data.data = (uint8_t*)fd_load(regf->fd, &pull->data.length, 0, regf); if (pull->data.data == NULL) { - DEBUG(0, ("Error reading data\n")); + DEBUG(0, ("Error reading data from file: %s\n", location)); talloc_free(regf); return WERR_GENERAL_FAILURE; } @@ -2220,6 +2220,7 @@ WERROR reg_open_regf_file(TALLOC_CTX *parent_ctx, const char *location, W_ERROR_HAVE_NO_MEMORY(regf_hdr); if (NT_STATUS_IS_ERR(tdr_pull_regf_hdr(pull, regf_hdr, regf_hdr))) { + DEBUG(0, ("Failed to pull regf header from file: %s\n", location)); talloc_free(regf); return WERR_GENERAL_FAILURE; } -- 2.11.4.GIT