Logo Search packages:      
Sourcecode: unionfs-fuse version File versions  Download package


* License: BSD-style license
* Copyright: Radek Podgorny <radek@podgorny.cz>,
#include <stdio.h>

#include "debug.h"

FILE* dbgfile = NULL;

int debug_init() {
#ifdef DEBUG
      char *dbgpath = "./unionfs_debug.log";
      printf("Debug mode, log will be written to %s\n", dbgpath);

      dbgfile = fopen(dbgpath, "w");
      if (!dbgfile) {
            printf("Failed to open %s for writing, exitting\n", dbgpath);
            return 2;
      return 0;

Generated by  Doxygen 1.6.0   Back to index