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

Function pqTraceOutputInt32

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

* pqTraceOutputInt32: output a 4-byte integer message to the log * * If 'suppress' is true, print a literal NNNN instead of the actual number. */

Source from the content-addressed store, hash-verified

141 * If 'suppress' is true, print a literal NNNN instead of the actual number.
142 */
143static int
144pqTraceOutputInt32(FILE *pfdebug, const char *data, int *cursor, bool suppress)
145{
146 int result;
147
148 memcpy(&result, data + *cursor, 4);
149 *cursor += 4;
150 result = (int) pg_ntoh32(result);
151 if (suppress)
152 fprintf(pfdebug, " NNNN");
153 else
154 fprintf(pfdebug, " %d", result);
155
156 return result;
157}
158
159/*
160 * pqTraceOutputString: output a string message to the log

Callers 13

pqTraceOutputAFunction · 0.85
pqTraceOutputBFunction · 0.85
pqTraceOutputDFunction · 0.85
pqTraceOutputEFunction · 0.85
pqTraceOutputFFunction · 0.85
pqTraceOutputKFunction · 0.85
pqTraceOutputPFunction · 0.85
pqTraceOutputRFunction · 0.85
pqTraceOutputtFunction · 0.85
pqTraceOutputTFunction · 0.85
pqTraceOutputvFunction · 0.85
pqTraceOutputVFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected