Message ID | 1400777408-7016-2-git-send-email-ilya.dryomov@inktank.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Reviewed-by: On Thu, 22 May 2014, Ilya Dryomov wrote: > Recognize poolop requests in debugfs monc dump, fix prink format > specifiers - tid is unsigned. > > Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> > --- > net/ceph/debugfs.c | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/net/ceph/debugfs.c b/net/ceph/debugfs.c > index 10421a4b76f8..8903dcee8d8e 100644 > --- a/net/ceph/debugfs.c > +++ b/net/ceph/debugfs.c > @@ -126,9 +126,11 @@ static int monc_show(struct seq_file *s, void *p) > req = rb_entry(rp, struct ceph_mon_generic_request, node); > op = le16_to_cpu(req->request->hdr.type); > if (op == CEPH_MSG_STATFS) > - seq_printf(s, "%lld statfs\n", req->tid); > + seq_printf(s, "%llu statfs\n", req->tid); > + else if (op == CEPH_MSG_POOLOP) > + seq_printf(s, "%llu poolop\n", req->tid); > else > - seq_printf(s, "%lld unknown\n", req->tid); > + seq_printf(s, "%llu unknown\n", req->tid); > } > > mutex_unlock(&monc->mutex); > -- > 1.7.10.4 > > -- > 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 > > -- 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 10421a4b76f8..8903dcee8d8e 100644 --- a/net/ceph/debugfs.c +++ b/net/ceph/debugfs.c @@ -126,9 +126,11 @@ static int monc_show(struct seq_file *s, void *p) req = rb_entry(rp, struct ceph_mon_generic_request, node); op = le16_to_cpu(req->request->hdr.type); if (op == CEPH_MSG_STATFS) - seq_printf(s, "%lld statfs\n", req->tid); + seq_printf(s, "%llu statfs\n", req->tid); + else if (op == CEPH_MSG_POOLOP) + seq_printf(s, "%llu poolop\n", req->tid); else - seq_printf(s, "%lld unknown\n", req->tid); + seq_printf(s, "%llu unknown\n", req->tid); } mutex_unlock(&monc->mutex);
Recognize poolop requests in debugfs monc dump, fix prink format specifiers - tid is unsigned. Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com> --- net/ceph/debugfs.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)