* pqTraceOutputInt32: output a 4-byte integer message to the log * * If 'suppress' is true, print a literal NNNN instead of the actual number. */
| 141 | * If 'suppress' is true, print a literal NNNN instead of the actual number. |
| 142 | */ |
| 143 | static int |
| 144 | pqTraceOutputInt32(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 |
no outgoing calls
no test coverage detected