From e598ed1698c1c2e23cae7c2eecb56e973e6cf5f7 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Sun, 15 Sep 2013 13:07:21 +0200 Subject: [PATCH] idmap_autorid: improve a debug message in idmap_autorid_getrange_int() Add output of status code. Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- source3/winbindd/idmap_autorid_tdb.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source3/winbindd/idmap_autorid_tdb.c b/source3/winbindd/idmap_autorid_tdb.c index 2126a67e1bb..cb45e838148 100644 --- a/source3/winbindd/idmap_autorid_tdb.c +++ b/source3/winbindd/idmap_autorid_tdb.c @@ -156,7 +156,8 @@ static NTSTATUS idmap_autorid_getrange_int(struct db_context *db, DEBUG(10, ("reading domain range for key %s\n", keystr)); status = dbwrap_fetch_uint32_bystring(db, keystr, &(range->rangenum)); if (!NT_STATUS_IS_OK(status)) { - DEBUG(1, ("Failed to read database for key %s\n", keystr)); + DEBUG(1, ("Failed to read database for key '%s': %s\n", + keystr, nt_errstr(status))); goto done; } -- 2.11.4.GIT