MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / ShowData

Method ShowData

extra/yassl/src/log.cpp:117–132  ·  view source on GitHub ↗

log processed data

Source from the content-addressed store, hash-verified

115
116 // log processed data
117 void Log::ShowData(uint bytes, bool sent)
118 {
119 char msg[MAX_MSG];
120 char number[16];
121
122 if (sent)
123 strncpy(msg, "Sent ", 10);
124 else
125 strncpy(msg, "Received ", 10);
126 sprintf(number, "%u", bytes);
127 strncat(msg, number, 8);
128 strncat(msg, " bytes of application data", 27);
129
130 msg[MAX_MSG - 1] = 0;
131 Trace(msg);
132 }
133
134
135#else // no YASSL_LOG

Callers 2

sendDataFunction · 0.80
receiveDataFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected