gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r22984 - Extractor/src/main


From: gnunet
Subject: [GNUnet-SVN] r22984 - Extractor/src/main
Date: Mon, 30 Jul 2012 15:53:52 +0200

Author: grothoff
Date: 2012-07-30 15:53:52 +0200 (Mon, 30 Jul 2012)
New Revision: 22984

Modified:
   Extractor/src/main/extractor_logging.h
Log:
more log stuff

Modified: Extractor/src/main/extractor_logging.h
===================================================================
--- Extractor/src/main/extractor_logging.h      2012-07-30 13:39:53 UTC (rev 
22983)
+++ Extractor/src/main/extractor_logging.h      2012-07-30 13:53:52 UTC (rev 
22984)
@@ -52,6 +52,25 @@
 
 
 /**
+ * Log an error message about a failed system/libc call
+ * using an error message based on 'errno'.
+ *
+ * @param syscall name of the syscall that failed
+ */
+#define LOG_STRERROR(syscall) LOG("System call `%s' failed: %s\n", syscall, 
STRERROR (errno))
+
+
+/**
+ * Log an error message about a failed system/libc call
+ * involving a file using an error message based on 'errno'.
+ *
+ * @param syscall name of the syscall that failed
+ * @param filename name of the file that was involved
+ */
+#define LOG_STRERROR_FILE(syscall,filename) LOG("System call `%s' failed for 
file `%s': %s\n", syscall, filename, STRERROR (errno))
+
+
+/**
  * Abort the program reporting an assertion failure
  *
  * @param file filename with the failure
@@ -61,6 +80,7 @@
 EXTRACTOR_abort_ (const char *file,
                  int line);
 
+
 /**
  * Abort program if assertion fails.
  *




reply via email to

[Prev in Thread] Current Thread [Next in Thread]