Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 323859
b: refs/heads/master
c: 8f28f19
h: refs/heads/master
i:
  323857: 77392d3
  323855: 37bde0e
v: v3
  • Loading branch information
Feng Tang authored and Arnaldo Carvalho de Melo committed Sep 20, 2012
1 parent 68a70af commit 5241090
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1ab1bd1921536c2a97adb888effeff4370a3246
refs/heads/master: 8f28f19a87cb48d13570ba774a3e85776eb36bb4
5 changes: 2 additions & 3 deletions trunk/tools/perf/util/map.c
Original file line number Diff line number Diff line change
Expand Up @@ -243,15 +243,14 @@ size_t map__fprintf(struct map *self, FILE *fp)

size_t map__fprintf_dsoname(struct map *map, FILE *fp)
{
const char *dsoname;
const char *dsoname = "[unknown]";

if (map && map->dso && (map->dso->name || map->dso->long_name)) {
if (symbol_conf.show_kernel_path && map->dso->long_name)
dsoname = map->dso->long_name;
else if (map->dso->name)
dsoname = map->dso->name;
} else
dsoname = "[unknown]";
}

return fprintf(fp, "%s", dsoname);
}
Expand Down

0 comments on commit 5241090

Please sign in to comment.