diff options
author | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-03-08 00:18:21 +0000 |
---|---|---|
committer | behlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c> | 2008-03-08 00:18:21 +0000 |
commit | 05ae387b5024b6b7014287e09ed9ce74befe91a3 (patch) | |
tree | 2b3028c66e5da4a70f924ab8b8cd5d367c9216df /include/sys/cmn_err.h | |
parent | 0b3cf046cb5b65ccaf22687e105a4380533c0305 (diff) |
Add somre debugging support
git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@31 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
Diffstat (limited to 'include/sys/cmn_err.h')
-rw-r--r-- | include/sys/cmn_err.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/sys/cmn_err.h b/include/sys/cmn_err.h index 44ccefc9f..c76e4f465 100644 --- a/include/sys/cmn_err.h +++ b/include/sys/cmn_err.h @@ -1,4 +1,16 @@ #ifndef _SPL_CMN_ERR_H #define _SPL_CMN_ERR_H +#include <sys/varargs.h> + +#define CE_CONT 0 /* continuation */ +#define CE_NOTE 1 /* notice */ +#define CE_WARN 2 /* warning */ +#define CE_PANIC 3 /* panic */ +#define CE_IGNORE 4 /* print nothing */ + +extern void cmn_err(int, const char *, ...); +extern void vcmn_err(int, const char *, __va_list); +extern void vpanic(const char *, __va_list); + #endif /* SPL_CMN_ERR_H */ |