From patchwork Sat Mar 9 15:13:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 2241691 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 068B1DF2F2 for ; Sat, 9 Mar 2013 15:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932376Ab3CIPNv (ORCPT ); Sat, 9 Mar 2013 10:13:51 -0500 Received: from mail-ia0-f169.google.com ([209.85.210.169]:52025 "EHLO mail-ia0-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932288Ab3CIPNv (ORCPT ); Sat, 9 Mar 2013 10:13:51 -0500 Received: by mail-ia0-f169.google.com with SMTP id j5so2407634iaf.0 for ; Sat, 09 Mar 2013 07:13:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=/iLNv1L6Qw/MY+1W6diIseQJna75sTvNaBd66GJVhBM=; b=RQlJWzZ3vV/+LFpUz+3t6iG18zPrHBTJHKAe3OsR1tgboOHV/AGCEYj44FxkFfErbx kWsa7GHLeWoWBFP1XXDRmAQRph5/ifKSgCJ8TNpecmiijfOrWYPAS25+xZaJrOfEK+aC Kgtq1xT2yG2haD1EnohuMug8hamsy+d+if31w5Hr/vR00veDbXFZ3SxTwtnp7Ze1jGxe XWBP+VUl4m9zxYpFTsmC7JedS7ehJzGp5DhnFU+MBDeOEDIwg3v/O7v4v8Nuhp/LP0Pq qDhEAr1XW3lsb84rDqWYu9Jr83vUqeSkUw1cHTfVRMcTsBKngsaHwdVN0qVL1NLcAm7U z/xg== X-Received: by 10.43.65.145 with SMTP id xm17mr4381886icb.35.1362842030406; Sat, 09 Mar 2013 07:13:50 -0800 (PST) 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 px9sm7255633igc.0.2013.03.09.07.13.48 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sat, 09 Mar 2013 07:13:48 -0800 (PST) Message-ID: <513B51AB.2060804@inktank.com> Date: Sat, 09 Mar 2013 09:13:47 -0600 From: Alex Elder User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: ceph-devel@vger.kernel.org Subject: [PATCH 2/8] libceph: minor byte order problems in References: <513B5116.2020305@inktank.com> In-Reply-To: <513B5116.2020305@inktank.com> X-Gm-Message-State: ALoCoQlTXR2CS5bT2usR3f5ln7z3hvbalt3CarIfGZxm7Lg4H+0rPEE7Y+TLw5lGp3M8d+woiGjg Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org Some values printed are not (necessarily) in CPU order. We already have a copy of the converted versions, so use them. Signed-off-by: Alex Elder --- net/ceph/messenger.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) return ret; diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c index b8d0da5..d9ace97 100644 --- a/net/ceph/messenger.c +++ b/net/ceph/messenger.c @@ -1916,7 +1916,7 @@ static int read_partial_message(struct ceph_connection *con) int skip = 0; dout("got hdr type %d front %d data %d\n", con->in_hdr.type, - con->in_hdr.front_len, con->in_hdr.data_len); + front_len, data_len); ret = ceph_con_in_msg_alloc(con, &skip); if (ret < 0)