24 |
|
|
25 |
#include "headers.h" |
#include "headers.h" |
26 |
#include "extern.h" |
#include "extern.h" |
27 |
|
#include "rcfile.h" |
28 |
|
|
29 |
void |
void |
30 |
mprintf(char *format, ...) |
mprintf(char *format, ...) |
99 |
return; |
return; |
100 |
} |
} |
101 |
|
|
102 |
|
void |
103 |
|
trace(RC_LOC *loc, const char *fmt, ...) |
104 |
|
{ |
105 |
|
va_list ap; |
106 |
|
int n = 0; |
107 |
|
char txt[LINEBUFFER]; |
108 |
|
|
109 |
|
if (VERBOSE > options.termlevel) |
110 |
|
return; |
111 |
|
|
112 |
|
if (loc) |
113 |
|
n = snprintf(txt, sizeof(txt), "%s:%lu: ", |
114 |
|
loc->file, (unsigned long)loc->line); |
115 |
|
va_start(ap, fmt); |
116 |
|
vsnprintf(txt + n, sizeof(txt) - n, fmt, ap); |
117 |
|
va_end(ap); |
118 |
|
info(VERBOSE, "%s", txt); |
119 |
|
} |
120 |
|
|
121 |
/* EOF */ |
/* EOF */ |
122 |
|
|