summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mdw@samba.org>2011-10-28 18:20:47 +0200
committerMatthias Dieter Wallnöfer <mdw@samba.org>2011-11-03 20:10:06 +0100
commit042372bc20375f30a292b57bebe1c4d7608339ca (patch)
tree5de2e640ec78375f8d50237507b09d7392b521d6 /source4/lib
parent79ab7ac33b9c9f5831fdf85f9fec69ede8d45ad1 (diff)
downloadsamba-042372bc20375f30a292b57bebe1c4d7608339ca.tar.gz
samba-042372bc20375f30a292b57bebe1c4d7608339ca.tar.bz2
samba-042372bc20375f30a292b57bebe1c4d7608339ca.zip
s4:lib/registry/regf.c - always generate debug messages on error cases
We need to know what is going on. Reviewed-by: Jelmer
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/registry/regf.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/lib/registry/regf.c b/source4/lib/registry/regf.c
index 5ca7b7c66c..b6a586cf78 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;
}