Skip to content

Commit

Permalink
libceph: do not prefix osd lines with \t in debugfs output
Browse files Browse the repository at this point in the history
To save screen space in anticipation of more fields (e.g. primary
affinity).

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
Reviewed-by: Alex Elder <elder@linaro.org>
  • Loading branch information
idryomov authored and Sage Weil committed Apr 5, 2014
1 parent 35fea3a commit 0a2800d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ceph/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ static int osdmap_show(struct seq_file *s, void *p)
int state = map->osd_state[i];
char sb[64];

seq_printf(s, "\tosd%d\t%s\t%3d%%\t(%s)\n",
seq_printf(s, "osd%d\t%s\t%3d%%\t(%s)\n",
i, ceph_pr_addr(&addr->in_addr),
((map->osd_weight[i]*100) >> 16),
ceph_osdmap_state_str(sb, sizeof(sb), state));
Expand Down

0 comments on commit 0a2800d

Please sign in to comment.