diff options
author | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-04-08 23:09:39 +0000 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2012-04-08 23:09:39 +0000 |
commit | 5499792c357777dcfc5ee461fa64baaba1d2dde5 (patch) | |
tree | 15363c44fe541b3adcd720edf39696e9230d7feb /netfs-sample/debug.h | |
parent | e5fca9a10c2622b85cc77e776ea56c8dbb9847e6 (diff) | |
parent | c6db537edac054a03847b1b99f78c00703f48d6b (diff) |
Merge branch 'dde' of git.debian.org:/git/pkg-hurd/hurd into dde
Diffstat (limited to 'netfs-sample/debug.h')
-rw-r--r-- | netfs-sample/debug.h | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/netfs-sample/debug.h b/netfs-sample/debug.h deleted file mode 100644 index 606d7e79..00000000 --- a/netfs-sample/debug.h +++ /dev/null @@ -1,60 +0,0 @@ -/*----------------------------------------------------------------------------*/ -/*debug.h*/ -/*----------------------------------------------------------------------------*/ -/*Simple facilities for debugging messages*/ -/*----------------------------------------------------------------------------*/ -/*Based on the code of unionfs translator.*/ -/*----------------------------------------------------------------------------*/ -/*Copyright (C) 2001, 2002, 2005 Free Software Foundation, Inc. - Written by Sergiu Ivanov <unlimitedscolobb@gmail.com>. - - This program is free software; you can redistribute it and/or - modify it under the terms of the GNU General Public License as - published by the Free Software Foundation; either version 2 of the - License, or * (at your option) any later version. - - This program is distributed in the hope that it will be useful, but - WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - General Public License for more details. - - You should have received a copy of the GNU General Public License - 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--------------------------------------------------------------*/ -/*Print debug messages here*/ -#define DEBUG_OUTPUT "/var/tmp/filterfs.dbg" -/*----------------------------------------------------------------------------*/ -#ifdef DEBUG - /*Initializes the log*/ -# define INIT_LOG() filterfs_dbg = fopen(DEBUG_OUTPUT, "wt") - /*Closes the log*/ -# define CLOSE_LOG() fclose(filterfs_dbg) - /*Prints a debug message and flushes the debug output*/ -# define LOG_MSG(fmt, args...) {fprintf(filterfs_dbg, fmt"\n", ##args);\ - fflush(filterfs_dbg);} -#else - /*Remove requests for debugging output*/ -# define INIT_LOG() -# define CLOSE_LOG() -# define LOG_MSG(fmt, args...) -#endif /*DEBUG*/ -/*----------------------------------------------------------------------------*/ - -/*----------------------------------------------------------------------------*/ -/*--------Global Variables----------------------------------------------------*/ -/*The file to write debugging info to*/ -extern FILE * filterfs_dbg; -/*----------------------------------------------------------------------------*/ - -#endif /*__DEBUG_H__*/ |