~ubuntu-core-dev/module-init-tools/ubuntu

« back to all changes in this revision

Viewing changes to logging.c

  • Committer: Scott James Remnant
  • Date: 2009-07-16 15:24:17 UTC
  • mfrom: (152.1.38)
  • Revision ID: scott@netsplit.com-20090716152417-7ak1sklxb59cs4fz
MergeĀ 3.10

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
/* Do we want to silently drop all warnings? */
14
14
int quiet = 0;
15
15
 
16
 
/* Number of times warn() has been called */
17
 
int warned = 0;
18
 
 
19
16
/* Do we want informative messages as well as errors? */
20
17
int verbose = 0;
21
18
 
46
43
void warn(const char *fmt, ...)
47
44
{
48
45
        va_list arglist;
49
 
        warned++;
50
46
        va_start(arglist, fmt);
51
47
        if (!quiet)
52
48
                message("WARNING: ", fmt, &arglist);