[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r17331 - gnunet/src/include
From: |
gnunet |
Subject: |
[GNUnet-SVN] r17331 - gnunet/src/include |
Date: |
Mon, 10 Oct 2011 15:06:29 +0200 |
Author: grothoff
Date: 2011-10-10 15:06:29 +0200 (Mon, 10 Oct 2011)
New Revision: 17331
Modified:
gnunet/src/include/gnunet_common.h
Log:
log from macros
Modified: gnunet/src/include/gnunet_common.h
===================================================================
--- gnunet/src/include/gnunet_common.h 2011-10-10 13:06:10 UTC (rev 17330)
+++ gnunet/src/include/gnunet_common.h 2011-10-10 13:06:29 UTC (rev 17331)
@@ -384,8 +384,22 @@
* a failure of the command 'cmd' with the message given
* by strerror(errno).
*/
+#define GNUNET_log_from_strerror(level, component, cmd) do { GNUNET_log_from
(level, component, _("`%s' failed at %s:%d with error: %s\n"), cmd, __FILE__,
__LINE__, STRERROR(errno)); } while(0)
+
+/**
+ * Log an error message at log-level 'level' that indicates
+ * a failure of the command 'cmd' with the message given
+ * by strerror(errno).
+ */
#define GNUNET_log_strerror_file(level, cmd, filename) do { GNUNET_log(level,
_("`%s' failed on file `%s' at %s:%d with error: %s\n"), cmd,
filename,__FILE__, __LINE__, STRERROR(errno)); } while(0)
+/**
+ * Log an error message at log-level 'level' that indicates
+ * a failure of the command 'cmd' with the message given
+ * by strerror(errno).
+ */
+#define GNUNET_log_from_strerror_file(level, component, cmd, filename) do {
GNUNET_log_from (level, component, _("`%s' failed on file `%s' at %s:%d with
error: %s\n"), cmd, filename,__FILE__, __LINE__, STRERROR(errno)); } while(0)
+
/* ************************* endianess conversion ****************** */
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r17331 - gnunet/src/include,
gnunet <=