MCPcopy Create free account
hub / github.com/git/git / transfer_debug

Function transfer_debug

transport-helper.c:1367–1382  ·  view source on GitHub ↗

Print bidirectional transfer loop debug message. */

Source from the content-addressed store, hash-verified

1365
1366/* Print bidirectional transfer loop debug message. */
1367__attribute__((format (printf, 1, 2)))
1368static 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

Callers 3

udt_close_if_finishedFunction · 0.85
udt_do_readFunction · 0.85
udt_do_writeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected