NTSTATUS strings are much more use than raw numbers...
authorAndrew Bartlett <abartlet@samba.org>
Wed, 16 Apr 2003 10:24:24 +0000 (10:24 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 16 Apr 2003 10:24:24 +0000 (10:24 +0000)
(This used to be commit aeaa60c8432fe06ad51bac52f473e5fdc6c00afc)

source3/sam/idmap.c

index 06fcc5a9566567705005f55c3add35a95195f3ac..8b5e23de25c69a0d4cc32802442924837eaeb642 100644 (file)
@@ -91,7 +91,7 @@ NTSTATUS idmap_set_mapping(const DOM_SID *sid, unid_t id, int id_type)
        ret = local_map->set_mapping(sid, id, id_type);
        if (NT_STATUS_IS_ERR(ret)) {
                DEBUG (0, ("idmap_set_mapping: Error, unable to modify local cache!\n"));
-               DEBUGADD(0, ("Error num. %d", NT_STATUS_V(ret)));
+               DEBUGADD(0, ("Error: %s", nt_errstr(ret)));
                return ret;
        }
 
@@ -101,7 +101,7 @@ NTSTATUS idmap_set_mapping(const DOM_SID *sid, unid_t id, int id_type)
                remote_map->set_mapping(sid, id, id_type);
                if (NT_STATUS_IS_ERR(ret)) {
                        DEBUG (0, ("idmap_set_mapping: Error, unable to modify remote cache!\n"));
-                       DEBUGADD(0, ("Error num. %d", NT_STATUS_V(ret)));
+                       DEBUGADD(0, ("Error: %s", nt_errstr(ret)));
                }
        }