MCPcopy Create free account
hub / github.com/apache/cloudberry / pqTraceOutputString

Function pqTraceOutputString

src/interfaces/libpq/fe-trace.c:162–182  ·  view source on GitHub ↗

* pqTraceOutputString: output a string message to the log */

Source from the content-addressed store, hash-verified

160 * pqTraceOutputString: output a string message to the log
161 */
162static void
163pqTraceOutputString(FILE *pfdebug, const char *data, int *cursor, bool suppress)
164{
165 int len;
166
167 if (suppress)
168 {
169 fprintf(pfdebug, " \"SSSS\"");
170 *cursor += strlen(data + *cursor) + 1;
171 }
172 else
173 {
174 len = fprintf(pfdebug, " \"%s\"", data + *cursor);
175
176 /*
177 * This is a null-terminated string. So add 1 after subtracting 3
178 * which is the double quotes and space length from len.
179 */
180 *cursor += (len - 3 + 1);
181 }
182}
183
184/*
185 * pqTraceOutputNchar: output a string of exactly len bytes message to the log

Callers 11

pqTraceOutputAFunction · 0.85
pqTraceOutputBFunction · 0.85
pqTraceOutputCFunction · 0.85
pqTraceOutputDFunction · 0.85
pqTraceOutputNRFunction · 0.85
pqTraceOutputEFunction · 0.85
pqTraceOutputfFunction · 0.85
pqTraceOutputPFunction · 0.85
pqTraceOutputQFunction · 0.85
pqTraceOutputSFunction · 0.85
pqTraceOutputTFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected