Skip to content

Commit

Permalink
Merge pull request #747 from skliper/fix746-os_printf_stub_print
Browse files Browse the repository at this point in the history
Fix #746, Add UtDebug message from OS_printf stub
  • Loading branch information
astrogeco authored Jan 21, 2021
2 parents e453e2f + 5bbf041 commit 709b582
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ut-stubs/osapi-utstub-printf.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 709b582

Please sign in to comment.