| 239 | |
| 240 | |
| 241 | void |
| 242 | ECPGdebug(int n, FILE *dbgs) |
| 243 | { |
| 244 | #ifdef ENABLE_THREAD_SAFETY |
| 245 | pthread_mutex_lock(&debug_init_mutex); |
| 246 | #endif |
| 247 | |
| 248 | if (n > 100) |
| 249 | { |
| 250 | ecpg_internal_regression_mode = true; |
| 251 | simple_debug = n - 100; |
| 252 | } |
| 253 | else |
| 254 | simple_debug = n; |
| 255 | |
| 256 | debugstream = dbgs; |
| 257 | |
| 258 | ecpg_log("ECPGdebug: set to %d\n", simple_debug); |
| 259 | |
| 260 | #ifdef ENABLE_THREAD_SAFETY |
| 261 | pthread_mutex_unlock(&debug_init_mutex); |
| 262 | #endif |
| 263 | } |
| 264 | |
| 265 | void |
| 266 | ecpg_log(const char *format,...) |