From 11ea83e9ae3b90fdd6c9b097256958683d473105 Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Wed, 4 Sep 2013 13:13:15 +0200 Subject: idmap_autorid: improve two debug messages by printing NT error codes Signed-off-by: Michael Adam Reviewed-by: Volker Lendecke --- source3/winbindd/idmap_autorid_tdb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source3/winbindd') diff --git a/source3/winbindd/idmap_autorid_tdb.c b/source3/winbindd/idmap_autorid_tdb.c index 419d7553d0..23b4bc9fb0 100644 --- a/source3/winbindd/idmap_autorid_tdb.c +++ b/source3/winbindd/idmap_autorid_tdb.c @@ -184,7 +184,7 @@ static NTSTATUS idmap_autorid_addrange_action(struct db_context *db, ret = dbwrap_store_uint32_bystring(db, keystr, requested_rangenum); if (!NT_STATUS_IS_OK(ret)) { DEBUG(1, ("Fatal error while storing new " - "domain->range assignment!\n")); + "domain->range assignment: %s\n", nt_errstr(ret))); goto error; } @@ -199,8 +199,8 @@ static NTSTATUS idmap_autorid_addrange_action(struct db_context *db, talloc_free(numstr); if (!NT_STATUS_IS_OK(ret)) { - DEBUG(1, ("Fatal error while storing " - "new domain->range assignment!\n")); + DEBUG(1, ("Fatal error while storing new " + "domain->range assignment: %s\n", nt_errstr(ret))); goto error; } DEBUG(5, ("Acquired new range #%d for domain %s " -- cgit