From 9443aa1a1c028df374b6c3655f1e12f49ce2891a Mon Sep 17 00:00:00 2001 From: Serhei Makarov Date: Wed, 3 Mar 2021 13:03:15 -0500 Subject: [PATCH] PR27031 stapbpf fix 'missing conversion specifier' in println() The synthesized format string was using '%lld' for integers which is not actually handled by staptree.cxx print_format::string_to_components. --- bpf-translate.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bpf-translate.cxx b/bpf-translate.cxx index 2e0023b85..8fda08089 100644 --- a/bpf-translate.cxx +++ b/bpf-translate.cxx @@ -3690,7 +3690,7 @@ bpf_unparser::visit_print_format (print_format *e) throw SEMANTIC_ERROR(_("cannot print a raw stats object"), e->args[i]->tok); case pe_long: - format += "%lld"; + format += "%ld"; break; case pe_string: -- 2.43.5