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

Function pqTraceOutputInt16

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

* pqTraceOutputInt16: output a 2-byte integer message to the log */

Source from the content-addressed store, hash-verified

122 * pqTraceOutputInt16: output a 2-byte integer message to the log
123 */
124static int
125pqTraceOutputInt16(FILE *pfdebug, const char *data, int *cursor)
126{
127 uint16 tmp;
128 int result;
129
130 memcpy(&tmp, data + *cursor, 2);
131 *cursor += 2;
132 result = (int) pg_ntoh16(tmp);
133 fprintf(pfdebug, " %d", result);
134
135 return result;
136}
137
138/*
139 * pqTraceOutputInt32: output a 4-byte integer message to the log

Callers 9

pqTraceOutputBFunction · 0.85
pqTraceOutputDFunction · 0.85
pqTraceOutputFFunction · 0.85
pqTraceOutputGFunction · 0.85
pqTraceOutputHFunction · 0.85
pqTraceOutputPFunction · 0.85
pqTraceOutputtFunction · 0.85
pqTraceOutputTFunction · 0.85
pqTraceOutputWFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected