File: verbose.h

package info (click to toggle)
diskscan 0.21-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,656 kB
  • sloc: ansic: 11,136; python: 338; xml: 138; sh: 41; makefile: 34
file content (15 lines) | stat: -rw-r--r-- 493 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef _VERBOSE_H
#define _VERBOSE_H

extern int verbose;
extern int verbose_extra_newline;

void verbose_out(const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));;

#define VERBOSE(...) if (verbose > 0) verbose_out("V: " __VA_ARGS__)
#define VVERBOSE(...) if (verbose > 1) verbose_out("V: " __VA_ARGS__)
#define VVVERBOSE(...) if (verbose > 2) verbose_out("V: " __VA_ARGS__)
#define INFO(...) verbose_out("I: " __VA_ARGS__)
#define ERROR(...) verbose_out("E: " __VA_ARGS__)

#endif