Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304869
b: refs/heads/master
c: 3e8b5dd
h: refs/heads/master
i:
  304867: f9d0d4c
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo committed Apr 27, 2012
1 parent 9196e99 commit 4a43a28
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 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: 9d1ef56d571671097f54a5ec31a9b1fb7dc819ed
refs/heads/master: 3e8b5ddf17d4639d41bc57ecfb51633815b70e49
9 changes: 4 additions & 5 deletions trunk/tools/perf/ui/browsers/annotate.c
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
slsmg_write_nstring(" ", 9);
}

ui_browser__write_graph(self, SLSMG_VLINE_CHAR);
SLsmg_write_char(' ');

/* The scroll bar isn't being used */
Expand All @@ -83,9 +82,9 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
ui_browser__set_color(self, HE_COLORSET_CODE);

if (!*dl->line)
slsmg_write_nstring(" ", width - 10);
slsmg_write_nstring(" ", width - 9);
else if (dl->offset == -1)
slsmg_write_nstring(dl->line, width - 10);
slsmg_write_nstring(dl->line, width - 9);
else {
char bf[256];
u64 addr = dl->offset;
Expand Down Expand Up @@ -138,7 +137,7 @@ static void annotate_browser__write(struct ui_browser *self, void *entry, int ro
scnprintf(bf, sizeof(bf), "%-6.6s %s", dl->name, dl->ops.raw);
}

slsmg_write_nstring(bf, width - 12 - printed);
slsmg_write_nstring(bf, width - 11 - printed);
}

if (current_entry)
Expand Down Expand Up @@ -176,7 +175,7 @@ static void annotate_browser__draw_current_jump(struct ui_browser *browser)
if (!bcursor->jump_target)
start_width += ab->offset_width + 1;

__ui_browser__line_arrow(browser, 10, from, to, start_width);
__ui_browser__line_arrow(browser, 9, from, to, start_width);
}

static unsigned int annotate_browser__refresh(struct ui_browser *browser)
Expand Down

0 comments on commit 4a43a28

Please sign in to comment.