From patchwork Tue Oct 15 17:29:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Kazior X-Patchwork-Id: 3046761 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 447A0BF924 for ; Tue, 15 Oct 2013 17:32:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 32581203E9 for ; Tue, 15 Oct 2013 17:32:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 08DB32043C for ; Tue, 15 Oct 2013 17:32:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933494Ab3JORce (ORCPT ); Tue, 15 Oct 2013 13:32:34 -0400 Received: from mail-pa0-f42.google.com ([209.85.220.42]:43983 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932555Ab3JORcc (ORCPT ); Tue, 15 Oct 2013 13:32:32 -0400 Received: by mail-pa0-f42.google.com with SMTP id kx10so1245860pab.15 for ; Tue, 15 Oct 2013 10:32:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tieto.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=ZihS+ifYM/iq//38UNNMD7BEbnrYs2u+Sq/0bxg3xpU=; b=wHWXtsvwXm6M90CkpVZQ9nzdv1S2dYZjXNhEA8eAuS9ZtgiQcVwLGfpD1zEQdMoFOD rfs/E0ufOus9q8XwAPQEdnATydK2xKvtBy8qZVA+rUvnUInwED1vLl1NYqg28lUJ9tSS eaQuaWUPKrRvKvPCKp4jhfPOGjFjN2vTtLsAY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=ZihS+ifYM/iq//38UNNMD7BEbnrYs2u+Sq/0bxg3xpU=; b=MAHih7cX4HAcXunhzCIkXDx7P5i2udcvaPc+IX6Q+HgrUoz/wMzlz5OYzFq05ZJCqn 5F1cliTTh8jYtwX93rUhE/L4ODRftD5l09tn9wPnK/XdYzWB4SHU8vnnr9plWzWPx1kx pcR0fr9K/8ps4asRXueAWo/iYhKo6tPo9ScCUV2slpYPMSwWSxoqURQX5/7BOEFaPTtS jsfof2WSOmvPNvMw34blBdykmC6PkPkLdzwOG3wcpuEDAQqNLReeG18ffUHqk03ycZrP x7Rp8/Dna2tkVjzi1toF4xrpPlfEPWanOrSq5O98ZMUgeZ5RNwWuKDN/QYIVyO3OA1MX TouQ== X-Gm-Message-State: ALoCoQnPkAiycl4pVeLkZ2OhZgBoSgMCyj1X2wP94hZX+4PwT0/vwyM5AAqYzvGm0jq7+Aa+UUq1/8FDK8ezrxTaDjU4WynjSwNdW4ItAT9+R/lr0h7vXoY= X-Received: by 10.68.0.101 with SMTP id 5mr42262576pbd.106.1381858352178; Tue, 15 Oct 2013 10:32:32 -0700 (PDT) Received: from bob.qualcomm.com (i-global252.qualcomm.com. [199.106.103.252]) by mx.google.com with ESMTPSA id qn1sm85828747pbc.34.1969.12.31.16.00.00 (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 15 Oct 2013 10:32:31 -0700 (PDT) From: Michal Kazior To: ath10k@lists.infradead.org Cc: linux-wireless@vger.kernel.org, Michal Kazior Subject: [PATCH 3/7] ath10k: fix endianess in prints Date: Tue, 15 Oct 2013 10:29:52 -0700 Message-Id: <1381858196-17000-4-git-send-email-michal.kazior@tieto.com> X-Mailer: git-send-email 1.8.4.rc3 In-Reply-To: <1381858196-17000-1-git-send-email-michal.kazior@tieto.com> References: <1381858196-17000-1-git-send-email-michal.kazior@tieto.com> X-DomainID: tieto.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,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 This fixes incorrect values being printed on big-endian hosts. Signed-off-by: Michal Kazior --- drivers/net/wireless/ath/ath10k/wmi.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/wmi.c b/drivers/net/wireless/ath/ath10k/wmi.c index f9766fa..8e59887 100644 --- a/drivers/net/wireless/ath/ath10k/wmi.c +++ b/drivers/net/wireless/ath/ath10k/wmi.c @@ -2209,7 +2209,7 @@ static int ath10k_wmi_main_cmd_init(struct ath10k *ar) } ath10k_dbg(ATH10K_DBG_WMI, "wmi sending %d memory chunks info.\n", - __cpu_to_le32(ar->wmi.num_mem_chunks)); + ar->wmi.num_mem_chunks); cmd->num_host_mem_chunks = __cpu_to_le32(ar->wmi.num_mem_chunks); @@ -2222,10 +2222,10 @@ static int ath10k_wmi_main_cmd_init(struct ath10k *ar) __cpu_to_le32(ar->wmi.mem_chunks[i].req_id); ath10k_dbg(ATH10K_DBG_WMI, - "wmi chunk %d len %d requested, addr 0x%x\n", + "wmi chunk %d len %d requested, addr 0x%llx\n", i, - cmd->host_mem_chunks[i].size, - cmd->host_mem_chunks[i].ptr); + ar->wmi.mem_chunks[i].len, + (unsigned long long)ar->wmi.mem_chunks[i].paddr); } out: memcpy(&cmd->resource_config, &config, sizeof(config)); @@ -2300,7 +2300,7 @@ static int ath10k_wmi_10x_cmd_init(struct ath10k *ar) } ath10k_dbg(ATH10K_DBG_WMI, "wmi sending %d memory chunks info.\n", - __cpu_to_le32(ar->wmi.num_mem_chunks)); + ar->wmi.num_mem_chunks); cmd->num_host_mem_chunks = __cpu_to_le32(ar->wmi.num_mem_chunks); @@ -2313,10 +2313,10 @@ static int ath10k_wmi_10x_cmd_init(struct ath10k *ar) __cpu_to_le32(ar->wmi.mem_chunks[i].req_id); ath10k_dbg(ATH10K_DBG_WMI, - "wmi chunk %d len %d requested, addr 0x%x\n", + "wmi chunk %d len %d requested, addr 0x%llx\n", i, - cmd->host_mem_chunks[i].size, - cmd->host_mem_chunks[i].ptr); + ar->wmi.mem_chunks[i].len, + (unsigned long long)ar->wmi.mem_chunks[i].paddr); } out: memcpy(&cmd->resource_config, &config, sizeof(config));