summaryrefslogtreecommitdiffstats
path: root/source/include/sam.h
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-09-06 13:00:37 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-09-06 13:00:37 +0000
commitf91fcb166107e45ffb3de95a3da65c79992341eb (patch)
tree042d2a90cd4773b2d4e5484f127f0964808af802 /source/include/sam.h
parente13bc432628a6131be082caedc75cd8a3d206e5a (diff)
downloadsamba-f91fcb166107e45ffb3de95a3da65c79992341eb.tar.gz
samba-f91fcb166107e45ffb3de95a3da65c79992341eb.tar.xz
samba-f91fcb166107e45ffb3de95a3da65c79992341eb.zip
Updates to sam_skel from metze, add sam/group.c and add a DEBUG() to the
SAM_ASSERT if we are not going to crash.
Diffstat (limited to 'source/include/sam.h')
-rw-r--r--source/include/sam.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/include/sam.h b/source/include/sam.h
index 53d56a2a807..afa7e55c659 100644
--- a/source/include/sam.h
+++ b/source/include/sam.h
@@ -30,8 +30,11 @@
#define SAM_ASSERT(x) SMB_ASSERT(x)
#else
#define SAM_ASSERT(x) while (0) { \
- if (!(x)) return NT_STATUS_FAIL_CHECK;\
- }
+ if (!(x)) {
+ DEBUG(0, ("SAM_ASSERT failed!\n"))
+ return NT_STATUS_FAIL_CHECK;\
+ } \
+ }
#endif