Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 223894
b: refs/heads/master
c: 1437a30
h: refs/heads/master
v: v3
  • Loading branch information
Ian Munsie authored and Arnaldo Carvalho de Melo committed Dec 6, 2010
1 parent 40e6361 commit c98f753
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 9c90a61c7e4286aa5a38b314a2d8f5a1e70b5135
refs/heads/master: 1437a30aae865d83c7d96e3401f503a73fffe14d
6 changes: 3 additions & 3 deletions trunk/tools/perf/util/sort.c
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ static int hist_entry__dso_snprintf(struct hist_entry *self, char *bf,
return repsep_snprintf(bf, size, "%-*s", width, dso_name);
}

return repsep_snprintf(bf, size, "%*Lx", width, self->ip);
return repsep_snprintf(bf, size, "%-*s", width, "[unknown]");
}

/* --sort symbol */
Expand All @@ -196,7 +196,7 @@ static int hist_entry__sym_snprintf(struct hist_entry *self, char *bf,

if (verbose) {
char o = self->ms.map ? dso__symtab_origin(self->ms.map->dso) : '!';
ret += repsep_snprintf(bf, size, "%*Lx %c ",
ret += repsep_snprintf(bf, size, "%-#*llx %c ",
BITS_PER_LONG / 4, self->ip, o);
}

Expand All @@ -205,7 +205,7 @@ static int hist_entry__sym_snprintf(struct hist_entry *self, char *bf,
ret += repsep_snprintf(bf + ret, size - ret, "%s",
self->ms.sym->name);
else
ret += repsep_snprintf(bf + ret, size - ret, "%*Lx",
ret += repsep_snprintf(bf + ret, size - ret, "%-#*llx",
BITS_PER_LONG / 4, self->ip);

return ret;
Expand Down

0 comments on commit c98f753

Please sign in to comment.