From 5bbf0419008b8c9d05e6d0eda15ddf17dfe500bd Mon Sep 17 00:00:00 2001 From: Jacob Hageman Date: Thu, 7 Jan 2021 15:30:35 -0500 Subject: [PATCH] Fix #746, Add UtDebug message from OS_printf stub --- src/ut-stubs/osapi-utstub-printf.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ut-stubs/osapi-utstub-printf.c b/src/ut-stubs/osapi-utstub-printf.c index afe5d8db2..19b4b4a9c 100644 --- a/src/ut-stubs/osapi-utstub-printf.c +++ b/src/ut-stubs/osapi-utstub-printf.c @@ -63,9 +63,13 @@ void OS_printf(const char *string, ...) int32 status; size_t length = strlen(string); va_list va; + char str[128]; va_start(va, string); + vsnprintf(str, sizeof(str), string, va); + UtDebug("OS_printf: %s", str); + status = UT_DefaultStubImplWithArgs(__func__, UT_KEY(OS_printf), 0, va); if (status >= 0)