perf tools: Update copy of libbpf's hashmap.c
[linux-2.6-microblaze.git] / tools / perf / util / dsos.c
index 87161e4..183a81d 100644 (file)
@@ -287,10 +287,12 @@ size_t __dsos__fprintf_buildid(struct list_head *head, FILE *fp,
        size_t ret = 0;
 
        list_for_each_entry(pos, head, node) {
+               char sbuild_id[SBUILD_ID_SIZE];
+
                if (skip && skip(pos, parm))
                        continue;
-               ret += dso__fprintf_buildid(pos, fp);
-               ret += fprintf(fp, " %s\n", pos->long_name);
+               build_id__sprintf(&pos->bid, sbuild_id);
+               ret += fprintf(fp, "%-40s %s\n", sbuild_id, pos->long_name);
        }
        return ret;
 }