MCPcopy Create free account
hub / github.com/SNAS/openbmp / DebugPrint

Method DebugPrint

Server/src/Logger.cpp:130–145  ·  view source on GitHub ↗

/ * Prints debug message if debug is enabled * * \param[in] filename the source file that originated the debug message * \param[in] line_num the line number from the file that originated the debug message * \param[in] func_name function name of the calling function * \param[in] msg message to print, can contain sprintf formats * \param[in] ... Optional list

Source from the content-addressed store, hash-verified

128 *
129 ***********************************************************************/
130void Logger::DebugPrint(const char *filename, int line_num, const char *func_name, const char *msg, ...)
131{
132 va_list args; // varialbe args
133
134 // If debug isn't enabled, we do nothing.
135 if (!debugEnabled)
136 return;
137
138 // Begin the args
139 va_start (args, msg);
140
141 printV("DEBUG", debugFile, filename, line_num, func_name, msg, args);
142
143 // Free/end the args
144 va_end(args);
145}
146
147void Logger::Print(const char *sev, const char *func_name, const char *msg, ...)
148{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected