summaryrefslogtreecommitdiffstats
path: root/source/include/smb_macros.h
diff options
context:
space:
mode:
authorJames Peach <jpeach@samba.org>2006-03-22 23:49:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 11:15:42 -0500
commit514a767c57f8194547e5b708ad2573ab9a0719c6 (patch)
tree877d0fb5844fae5bc4eaea6bf7e085daddc08891 /source/include/smb_macros.h
parent203b4911c16bd7e10198a6f0e63960f2813025ef (diff)
downloadsamba-514a767c57f8194547e5b708ad2573ab9a0719c6.tar.gz
samba-514a767c57f8194547e5b708ad2573ab9a0719c6.tar.xz
samba-514a767c57f8194547e5b708ad2573ab9a0719c6.zip
r14668: Set the FILE_STATUS_OFFLINE bit by observing the events a DMAPI-based
HSM is interested in. Tested on both IRIX and SLES9.
Diffstat (limited to 'source/include/smb_macros.h')
-rw-r--r--source/include/smb_macros.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/include/smb_macros.h b/source/include/smb_macros.h
index 3ae8814cfd3..554dbbc0878 100644
--- a/source/include/smb_macros.h
+++ b/source/include/smb_macros.h
@@ -76,6 +76,10 @@
(DEBUG(0,("PANIC: assert failed at %s(%d)\n", __FILE__, __LINE__))))
#endif
+#define SMB_WARN(condition, message) \
+ ((condition) ? (void)0 : \
+ DEBUG(0, ("WARNING: %s: %s\n", #condition, message)))
+
#define SMB_ASSERT_ARRAY(a,n) SMB_ASSERT((sizeof(a)/sizeof((a)[0])) >= (n))
/* these are useful macros for checking validity of handles */