pahole: Use type__fprintf() directly for --compile
As we ne need to signal more options via a conf_fprintf variable, like
the conf_fprintf.compilable knob.
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
diff --git a/pahole.c b/pahole.c
index 6f4f87c..04b28c0 100644
--- a/pahole.c
+++ b/pahole.c
@@ -514,8 +514,10 @@
conf.prefix = conf.suffix = NULL;
if (compilable) {
- if (type__emit_definitions(tag, cu, &emissions, stdout))
- type__emit(tag, cu, NULL, NULL, stdout);
+ if (type__emit_definitions(tag, cu, &emissions, stdout)) {
+ tag__fprintf(tag, cu, &conf, stdout);
+ putchar(';');
+ }
} else {
tag__fprintf(tag, cu, &conf, stdout);
}