git://scientific.zcu.cz
/
jra1mw.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
08bb208
)
added SYSTEM_FATAL
author
Jan Pospíšil
<honik@ntc.zcu.cz>
Fri, 17 Jul 2009 09:24:16 +0000
(09:24 +0000)
committer
Jan Pospíšil
<honik@ntc.zcu.cz>
Fri, 17 Jul 2009 09:24:16 +0000
(09:24 +0000)
org.glite.lbjp-common.log/log.h
patch
|
blob
|
blame
|
history
diff --git
a/org.glite.lbjp-common.log/log.h
b/org.glite.lbjp-common.log/log.h
index
fc66000
..
7f681fa
100644
(file)
--- a/
org.glite.lbjp-common.log/log.h
+++ b/
org.glite.lbjp-common.log/log.h
@@
-37,6
+37,12
@@
extern "C" {
else \
glite_common_log(LOG_CATEGORY_CONTROL,LOG_PRIORITY_ERROR,"%s\n",my_err); }
+#define SYSTEM_FATAL(my_err) { \
+ if (errno !=0 ) \
+ glite_common_log(LOG_CATEGORY_CONTROL,LOG_PRIORITY_FATAL,"%s: %s\n",my_err,strerror(errno)); \
+ else \
+ glite_common_log(LOG_CATEGORY_CONTROL,LOG_PRIORITY_FATAL,"%s\n",my_err); }
+
/* logging functions */
/**