diff --git a/src/Platforms/Iar/UtestPlatform.cpp b/src/Platforms/Iar/UtestPlatform.cpp index 771ca5804..ff376ded0 100644 --- a/src/Platforms/Iar/UtestPlatform.cpp +++ b/src/Platforms/Iar/UtestPlatform.cpp @@ -137,9 +137,10 @@ static PlatformSpecificFile PlatformSpecificFOpenImplementation(const char* file static void PlatformSpecificFPutsImplementation(const char* str, PlatformSpecificFile file) { - (void)str; - (void)file; - printf("FILE%d:%s",(int)file, str); + if (file == PlatformSpecificStdOut) + printf("%s", str); + else + printf("FILE%d:%s", (int)file, str); } static void PlatformSpecificFCloseImplementation(PlatformSpecificFile file)