* Print a debug message. */
| 138 | * Print a debug message. |
| 139 | */ |
| 140 | void debugImpl(const char *msg, ...) |
| 141 | { |
| 142 | fprintf(stderr, "%sdebug%s: ", |
| 143 | (option_is_tty? "\33[35m": ""), |
| 144 | (option_is_tty? "\33[0m" : "")); |
| 145 | |
| 146 | va_list ap; |
| 147 | va_start(ap, msg); |
| 148 | vfprintf(stderr, msg, ap); |
| 149 | va_end(ap); |
| 150 | |
| 151 | putc('\n', stderr); |
| 152 | } |
| 153 | |
| 154 | /* |
| 155 | * Print logging information. |