| 327 | } |
| 328 | |
| 329 | ProfileResult ProfileLogText(const char* format, ...) |
| 330 | { |
| 331 | CHECK_INITIALIZED_RETVAL(PROFILE_RESULT_NOT_INITIALIZED); |
| 332 | DM_MUTEX_SCOPED_LOCK(g_ProfileLock); |
| 333 | |
| 334 | char buffer[DM_PROFILE_TEXT_LENGTH]; |
| 335 | |
| 336 | va_list lst; |
| 337 | va_start(lst, format); |
| 338 | int n = vsnprintf(buffer, DM_PROFILE_TEXT_LENGTH, format, lst); |
| 339 | if (n < 0) |
| 340 | { |
| 341 | buffer[DM_PROFILE_TEXT_LENGTH-1] = '\0'; |
| 342 | } |
| 343 | va_end(lst); |
| 344 | |
| 345 | DO_LOOP_RETVAL(LogText, buffer); |
| 346 | } |
| 347 | |
| 348 | // ***************************************************************************************** |
| 349 | // Properties |
no outgoing calls
no test coverage detected