From patchwork Thu Jul 19 21:08:26 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 1218541 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 564343FD48 for ; Thu, 19 Jul 2012 21:08:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751559Ab2GSVI3 (ORCPT ); Thu, 19 Jul 2012 17:08:29 -0400 Received: from mail-gh0-f174.google.com ([209.85.160.174]:54224 "EHLO mail-gh0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751466Ab2GSVI2 (ORCPT ); Thu, 19 Jul 2012 17:08:28 -0400 Received: by mail-gh0-f174.google.com with SMTP id r11so3302374ghr.19 for ; Thu, 19 Jul 2012 14:08:28 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=3ml6fNthGugMvGNDXeNB8lwIMJZhgoAWRoCFjq+AhY4=; b=BS1yRUcS9E/AngrAmt/qrPBc148T8JKng2uukZhaDejRnF+NeG/7IkqFZN+0bd0XGa Bp8UmCjRYAL43C3okzZwJTQhY0NB9M8NsPfL2HJ6UO4C+EU1NGQA647J8FPIj1pHxI2Y 3NVP1VZyGaoSl8ohS6sQaW9+i+FLfEbghBLrJXra7SOEmAvRkF1gfWaCIyFLHgxSvIWo 92RZvvtB7La2JePcarW61DUhIcngv+GbOGkiotEgZQ2U8fgLxgtJt4BGCA6km/9u/c5R WrnvNJ1ayLWTfs4l72ZdQhnxrzOakOSG8PGGSYlh4VD/vurS4zhYLDV4x8vILM6GVsOC T/8g== Received: by 10.50.156.133 with SMTP id we5mr6492956igb.62.1342732108274; Thu, 19 Jul 2012 14:08:28 -0700 (PDT) Received: from [172.22.22.4] (c-71-195-31-37.hsd1.mn.comcast.net. [71.195.31.37]) by mx.google.com with ESMTPS id va9sm17807498igb.17.2012.07.19.14.08.27 (version=SSLv3 cipher=OTHER); Thu, 19 Jul 2012 14:08:27 -0700 (PDT) Message-ID: <5008774A.8000008@inktank.com> Date: Thu, 19 Jul 2012 16:08:26 -0500 From: Alex Elder User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20120714 Thunderbird/14.0 MIME-Version: 1.0 To: ceph-devel@vger.kernel.org Subject: [PATCH 03/12] rbd: clean up a few dout() calls References: <500874F5.4090205@inktank.com> In-Reply-To: <500874F5.4090205@inktank.com> X-Gm-Message-State: ALoCoQltXI+lIIGHqILty8qX/kZ8e3CkgwOAPop4JF3JEc+Sr5Rxc8+piHBbQSXpa4FN8ZYG8mHM Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org There was a dout() call in rbd_do_request() that was reporting the reporting the offset as the length and vice versa. While fixing that I did a quick scan of other dout() calls and fixed a couple of other minor things. Signed-off-by: Alex Elder --- drivers/block/rbd.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) /* @@ -1664,7 +1663,7 @@ static int rbd_header_add_snap(struct rbd_device *rbd_dev, monc = &rbd_dev->rbd_client->client->monc; ret = ceph_monc_create_snapid(monc, rbd_dev->pool_id, &new_snapid); - dout("created snapid=%lld\n", new_snapid); + dout("created snapid=%llu\n", new_snapid); if (ret < 0) return ret; diff --git a/drivers/block/rbd.c b/drivers/block/rbd.c index 74e6a33..93b2447 100644 --- a/drivers/block/rbd.c +++ b/drivers/block/rbd.c @@ -895,7 +895,7 @@ static int rbd_do_request(struct request *rq, } dout("rbd_do_request object_name=%s ofs=%lld len=%lld\n", - object_name, len, ofs); + object_name, ofs, len); osdc = &rbd_dev->rbd_client->client->osdc; req = ceph_osdc_alloc_request(osdc, flags, snapc, ops, @@ -1315,8 +1315,7 @@ static void rbd_notify_cb(u64 ver, u64 notify_id, u8 opcode, void *data) return; dout("rbd_notify_cb %s notify_id=%lld opcode=%d\n", - rbd_dev->header_name, - notify_id, (int)opcode); + rbd_dev->header_name, notify_id, (int) opcode); }