summaryrefslogtreecommitdiff
path: root/debug.h
diff options
context:
space:
mode:
authorSergiu Ivanov <unlimitedscolobb@gmail.com>2008-11-21 23:54:40 +0200
committerSergiu Ivanov <unlimitedscolobb@gmail.com>2008-11-21 23:54:40 +0200
commita54273639f6afd659c15326cb997922fcecfe89a (patch)
tree3f240fed8fcfd7f14cbc5b7d059f48f6eb9707cb /debug.h
parent59f4d4d2b67028c01f41ea0de0f12934b4fad07b (diff)
Moved the code to GCS
Now the code is (hopefully) compliant with GNU Coding Standards.
Diffstat (limited to 'debug.h')
-rw-r--r--debug.h51
1 files changed, 25 insertions, 26 deletions
diff --git a/debug.h b/debug.h
index d4e79cea7..453e559e2 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,39 +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/nsmux.dbg"
-/*----------------------------------------------------------------------------*/
+/*---------------------------------------------------------------------------*/
#ifdef DEBUG
- /*Initializes the log*/
-# define INIT_LOG() nsmux_dbg = fopen(DEBUG_OUTPUT, "wt")
- /*Closes the log*/
+/*Initializes the log */
+# define INIT_LOG() nsmux_dbg = fopen(DEBUG_OUTPUT, "wt")
+/*Closes the log */
# define CLOSE_LOG() fclose(nsmux_dbg)
- /*Prints a debug message and flushes the debug output*/
-# define LOG_MSG(fmt, args...) {fprintf(nsmux_dbg, fmt"\n", ##args);\
- fflush(nsmux_dbg);}
+/*Prints a debug message and flushes the debug output */
+# define LOG_MSG(fmt, args...) {fprintf(nsmux_dbg, fmt"\n", ##args);\
+ fflush(nsmux_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 * nsmux_dbg;
-/*----------------------------------------------------------------------------*/
-
+extern FILE *nsmux_dbg;
+/*---------------------------------------------------------------------------*/
#endif /*__DEBUG_H__*/