From patchwork Thu May 22 16:50:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Dryomov X-Patchwork-Id: 4224701 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 705139F23C for ; Thu, 22 May 2014 16:50:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B0D752011D for ; Thu, 22 May 2014 16:50:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id E6FFE2034B for ; Thu, 22 May 2014 16:50:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752098AbaEVQuP (ORCPT ); Thu, 22 May 2014 12:50:15 -0400 Received: from mail-wg0-f47.google.com ([74.125.82.47]:53500 "EHLO mail-wg0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751039AbaEVQuO (ORCPT ); Thu, 22 May 2014 12:50:14 -0400 Received: by mail-wg0-f47.google.com with SMTP id x12so3679513wgg.30 for ; Thu, 22 May 2014 09:50:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=WxFnYX6HFv5I4JiuCoyBwo6YweaJnx//PrBOtRr9p7k=; b=lWK5rquih0XsOp/ZOXrv3mumULhr0t/e+la/rRh+eyY8a7D/DI23M/taRPs5UuwMW2 Nf8YuP1njK8NQ6D7T7TuOSnPQAEKawjBKRDB1gDgZkRhIC8nnq8+uDU5rgymaT9sXRVo uLNQM+oM7Tqm1HO1sPo2URgE1PnvXtZxv6h+ZwbQjAMbVY9AoXnz5XI7arSLjS/aKtWX 6/VwqYjAE8eF0qyNEiTrcLluRnA2bTyBWvS2La1CY4vFJpkAw6ikJ59FoPKQeGt9sKZU w4qGC9GjYori+Rap6cgd7GxFXQNYqybUwJNni3fUGVEpUKpQVvH1F106ZYkC3stFTQtG VEFw== X-Gm-Message-State: ALoCoQk6WsYmbP0v1sqlxtxRNzCavmX5A6Gi6pHvOonPKpeBI31PWxxx5L2UZRNOW0AZqGk5aNBG X-Received: by 10.194.63.196 with SMTP id i4mr16755836wjs.50.1400777413120; Thu, 22 May 2014 09:50:13 -0700 (PDT) Received: from localhost ([109.110.67.203]) by mx.google.com with ESMTPSA id ek4sm1239007wib.9.2014.05.22.09.50.11 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 22 May 2014 09:50:12 -0700 (PDT) From: Ilya Dryomov To: ceph-devel@vger.kernel.org Subject: [PATCH v3 1/4] libceph: recognize poolop requests in debugfs Date: Thu, 22 May 2014 20:50:05 +0400 Message-Id: <1400777408-7016-2-git-send-email-ilya.dryomov@inktank.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1400777408-7016-1-git-send-email-ilya.dryomov@inktank.com> References: <1400777408-7016-1-git-send-email-ilya.dryomov@inktank.com> Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Recognize poolop requests in debugfs monc dump, fix prink format specifiers - tid is unsigned. Signed-off-by: Ilya Dryomov Reviewed-by: --- 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);