| 3650 | } |
| 3651 | |
| 3652 | void Optimizer::printf(const char* format, ...) |
| 3653 | { |
| 3654 | #ifndef OPT_DEBUG_SYS_REQUESTS |
| 3655 | if (csb->csb_g_flags & csb_internal) |
| 3656 | return; |
| 3657 | #endif |
| 3658 | |
| 3659 | #ifdef OPT_DEBUG |
| 3660 | if (!debugFile) |
| 3661 | debugFile = os_utils::fopen(OPTIMIZER_DEBUG_FILE, "a"); |
| 3662 | |
| 3663 | fb_assert(debugFile); |
| 3664 | |
| 3665 | va_list arglist; |
| 3666 | va_start(arglist, format); |
| 3667 | Firebird::string str; |
| 3668 | str.vprintf(format, arglist); |
| 3669 | va_end(arglist); |
| 3670 | |
| 3671 | fprintf(debugFile, "%s", str.c_str()); |
| 3672 | fflush(debugFile); |
| 3673 | #endif |
| 3674 | } |
no test coverage detected