File: debug.h

package info (click to toggle)
cdebconf 0.249
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,560 kB
  • sloc: ansic: 16,595; sh: 549; makefile: 461; sql: 52; perl: 13
file content (22 lines) | stat: -rw-r--r-- 504 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/**
 * @file debug.h
 * @brief Debugging functions 
 */
#ifndef _DEBUG_H_
#define _DEBUG_H_

/**
 * @brief prints a debug message to the screen if the level of the 
 *        message is higher than the current debug level
 * @param int level - level of debug message
 * @param char *fmt - format of message to write (a la printf)
 * @param ... - other args for format string
 */
void debug_printf(int level, const char *fmt, ...)
#ifdef __GNUC__
	__attribute__((format(printf, 2, 3)))
#endif
	;

#endif