diff --git a/src/acl_printf.cpp b/src/acl_printf.cpp index 60280fcf..4a18d673 100644 --- a/src/acl_printf.cpp +++ b/src/acl_printf.cpp @@ -893,7 +893,7 @@ static size_t l_dump_printf_buffer(cl_event event, cl_kernel kernel, #endif // no data to be printed, end of printing for this printf - if (ptr == format_string.cend()) + if (ptr == format_string.cend() && data_elem._conversion_string.empty()) break; // Handle vector types by replicating the conversion string for each @@ -1116,4 +1116,4 @@ static void decode_string(std::string &print_data) { #ifdef __GNUC__ #pragma GCC visibility pop -#endif \ No newline at end of file +#endif