[803699]: / src / common.h  Maximize  Restore  History

Download this file

19 lines (12 with data), 553 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
#ifndef __COMMON_H__
#define __COMMON_H__
#include <sys/types.h>
#include <unistd.h>
int common_set_smbnetfs_debug_level(int level);
int common_set_log_file(const char *logfile);
void common_debug_print(int level, const char *fmt, ...);
void common_print_backtrace(void);
#include <stdio.h>
#define DPRINTF(level, fmt, args...) { printf("%d->%s: " fmt, getpid(), __FUNCTION__, ## args); fflush(stdout); }
//#define DPRINTF(level, fmt, args...) common_debug_print(level, "%d->%s: " fmt, getpid(), __FUNCTION__, ## args)
#endif /* __COMMON_H__ */