summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2008-11-22 00:25:17 +0200
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2008-11-22 00:25:17 +0200
commit9401ed47c6d00cca32b581e096502f9534998bcd (patch)
tree5e601b6d3c6dd10c71c579e6c89b609b3e4f292d /debug.h
parent4e81430d26eef24f5bb8464c8c54a11b042f1842 (diff)
Moved the code to GCS
The code now complies (hopefully) with GNU Coding Standards.
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h50
1 files changed, 25 insertions, 25 deletions
diff --git a/debug.h b/debug.h
index 254226737..84e6de7c9 100644
--- a/debug.h
+++ b/debug.h
@@ -1,10 +1,10 @@
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
/*debug.h*/
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
/*Simple facilities for debugging messages*/
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
/*Based on the code of unionfs translator.*/
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
/*Copyright (C) 2001, 2002, 2005, 2008 Free Software Foundation, Inc.
Written by Sergiu Ivanov <unlimitedscolobb@gmail.com>.
@@ -22,38 +22,38 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
USA.*/
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
#ifndef __DEBUG_H__
#define __DEBUG_H__
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
#include <stdio.h>
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
-/*----------------------------------------------------------------------------*/
-/*--------Macros--------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
+/*--------Macros-------------------------------------------------------------*/
/*Print debug messages here*/
#define DEBUG_OUTPUT "/var/log/filter.dbg"
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
#ifdef DEBUG
- /*Initializes the log*/
-# define INIT_LOG() filter_dbg = fopen(DEBUG_OUTPUT, "wt")
- /*Closes the log*/
+/*Initializes the log */
+# define INIT_LOG() filter_dbg = fopen(DEBUG_OUTPUT, "wt")
+/*Closes the log */
# define CLOSE_LOG() fclose(filter_dbg)
- /*Prints a debug message and flushes the debug output*/
-# define LOG_MSG(fmt, args...) {fprintf(filter_dbg, fmt"\n", ##args);\
- fflush(filter_dbg);}
+/*Prints a debug message and flushes the debug output */
+# define LOG_MSG(fmt, args...) {fprintf(filter_dbg, fmt"\n", ##args);\
+ fflush(filter_dbg);}
#else
- /*Remove requests for debugging output*/
-# define INIT_LOG()
-# define CLOSE_LOG()
-# define LOG_MSG(fmt, args...)
+/*Remove requests for debugging output */
+# define INIT_LOG()
+# define CLOSE_LOG()
+# define LOG_MSG(fmt, args...)
#endif /*DEBUG*/
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
-/*----------------------------------------------------------------------------*/
-/*--------Global Variables----------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
+/*--------Global Variables---------------------------------------------------*/
/*The file to write debugging info to*/
-extern FILE * filter_dbg;
-/*----------------------------------------------------------------------------*/
+extern FILE *filter_dbg;
+/*---------------------------------------------------------------------------*/
#endif /*__DEBUG_H__*/