perf ui/gtk: Reuse generic __hpp__fmt() code
[deliverable/linux.git] / tools / perf / ui / hist.c
index 6094562c95232f60bb5493ed23839b83d65d655d..085353435f07b3df9b6c5def4bff8a590bf86e54 100644 (file)
@@ -8,12 +8,9 @@
 
 /* hist period print (hpp) functions */
 
-typedef int (*hpp_snprint_fn)(char *buf, size_t size, const char *fmt, ...);
-
-static int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he,
-                     u64 (*get_field)(struct hist_entry *),
-                     const char *fmt, hpp_snprint_fn print_fn,
-                     bool fmt_percent)
+int __hpp__fmt(struct perf_hpp *hpp, struct hist_entry *he,
+              u64 (*get_field)(struct hist_entry *),
+              const char *fmt, hpp_snprint_fn print_fn, bool fmt_percent)
 {
        int ret;
        struct hists *hists = he->hists;
This page took 0.028894 seconds and 5 git commands to generate.