Print bidirectional transfer loop debug message. */
| 1365 | |
| 1366 | /* Print bidirectional transfer loop debug message. */ |
| 1367 | __attribute__((format (printf, 1, 2))) |
| 1368 | static void transfer_debug(const char *fmt, ...) |
| 1369 | { |
| 1370 | va_list args; |
| 1371 | char msgbuf[PBUFFERSIZE]; |
| 1372 | |
| 1373 | if (transfer_debug_enabled < 0) |
| 1374 | BUG("somebody forgot to check GIT_TRANSLOOP_DEBUG!"); |
| 1375 | if (!transfer_debug_enabled) |
| 1376 | return; |
| 1377 | |
| 1378 | va_start(args, fmt); |
| 1379 | vsnprintf(msgbuf, PBUFFERSIZE, fmt, args); |
| 1380 | va_end(args); |
| 1381 | fprintf(stderr, "Transfer loop debugging: %s\n", msgbuf); |
| 1382 | } |
| 1383 | |
| 1384 | /* Stream state: More data may be coming in this direction. */ |
| 1385 | #define SSTATE_TRANSFERRING 0 |
no outgoing calls
no test coverage detected