idmap_autorid: improve a debug message in idmap_autorid_getrange_int()
authorMichael Adam <obnox@samba.org>
Sun, 15 Sep 2013 11:07:21 +0000 (13:07 +0200)
committerMichael Adam <obnox@samba.org>
Tue, 1 Oct 2013 08:49:15 +0000 (10:49 +0200)
Add output of status code.

Signed-off-by: Michael Adam <obnox@samba.org>
source3/winbindd/idmap_autorid_tdb.c

index 9b216595ba9890bf2d9ebad90d3d4ea09401087a..54d59bfaff4843e994dc621d25c6491b8b1adbee 100644 (file)
@@ -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;
        }