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 22:06:21 +0000 (00:06 +0200)
Add output of status code.

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

index 2126a67e1bb7cff610a6df08218fe06e946b509f..cb45e838148e198f51b0a77c5acbe8ae9d32c10d 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;
        }