Received: from eggs.gnu.org ([208.118.235.92]:60763) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVM6a-0005GU-69 for qemu-devel@nongnu.org; Thu, 25 Apr 2013 09:21:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UVM6V-0004mS-8E for qemu-devel@nongnu.org; Thu, 25 Apr 2013 09:20:56 -0400 Received: from mail-wi0-x235.google.com ([2a00:1450:400c:c05::235]:59412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UVM6V-0004mE-0j for qemu-devel@nongnu.org; Thu, 25 Apr 2013 09:20:51 -0400 Received: by mail-wi0-f181.google.com with SMTP id c10so3372214wiw.8 for ; Thu, 25 Apr 2013 06:20:50 -0700 (PDT) Date: Thu, 25 Apr 2013 15:20:47 +0200 From: Stefan Hajnoczi Message-ID: <20130425132047.GA10819@stefanha-thinkpad.redhat.com> References: <1366807475-26350-1-git-send-email-famz@redhat.com> <1366807475-26350-6-git-send-email-famz@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1366807475-26350-6-git-send-email-famz@redhat.com> Subject: Re: [Qemu-devel] [PATCH v3 5/6] vmdk: store fields of VmdkMetaData in cpu endian List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fam Zheng Cc: kwolf@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com On Wed, Apr 24, 2013 at 08:44:34PM +0800, Fam Zheng wrote: > @@ -938,7 +938,7 @@ static int get_cluster_offset(BlockDriverState *bs, > } > > if (m_data) { > - m_data->offset = tmp; > + m_data->offset = *cluster_offset; tmp can be dropped now: -tmp = cpu_to_le32(*cluster_offset); -l2_table[l2_index] = tmp; +l2_table[l2_index] = cpu_to_le32(*cluster_offset);