From aa8211cb7e30c6739a4d7e744fbc27a647c5e54f Mon Sep 17 00:00:00 2001 From: "Mendell, Mark P" Date: Wed, 31 Jul 2024 13:20:05 -0400 Subject: [PATCH] Handle printf format as the last item in the format string --- src/acl_printf.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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