MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / printf

Method printf

src/jrd/optimizer/Optimizer.cpp:3652–3674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3650}
3651
3652void 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}

Callers 15

getReplicatorFunction · 0.45
initSharedFileMethod · 0.45
archiveExecuteMethod · 0.45
createSegmentMethod · 0.45
reuseSegmentMethod · 0.45
configErrorFunction · 0.45
composeErrorFunction · 0.45
logMessageMethod · 0.45
executeShellFunction · 0.45
getRemoteErrorMethod · 0.45
getRemoteErrorMethod · 0.45
putConnectionMethod · 0.45

Calls 4

fflushFunction · 0.85
vprintfMethod · 0.80
fopenFunction · 0.50
c_strMethod · 0.45

Tested by

no test coverage detected