Message ID | 1395944299-21970-3-git-send-email-ilya.dryomov@inktank.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On 03/27/2014 01:17 PM, Ilya Dryomov wrote: > To save screen space in anticipation of more fields (e.g. primary > affinity). > > Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> Looks good. If there are lots of these little trivial transformations they could probably be consolidated into a smaller set of patches. Reviewed-by: Alex Elder <elder@linaro.org> > --- > net/ceph/debugfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c > index d225842c7b41..112d98edb156 100644 > --- a/net/ceph/debugfs.c > +++ b/net/ceph/debugfs.c > @@ -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)); > -- To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c index d225842c7b41..112d98edb156 100644 --- a/net/ceph/debugfs.c +++ b/net/ceph/debugfs.c @@ -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));
To save screen space in anticipation of more fields (e.g. primary affinity). Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> --- net/ceph/debugfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)