From patchwork Mon May 11 16:10:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladimir Kondratiev X-Patchwork-Id: 6379301 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BE7339F32B for ; Mon, 11 May 2015 16:11:12 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 0A91120220 for ; Mon, 11 May 2015 16:11:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5B01120453 for ; Mon, 11 May 2015 16:11:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753215AbbEKQK7 (ORCPT ); Mon, 11 May 2015 12:10:59 -0400 Received: from wolverine01.qualcomm.com ([199.106.114.254]:20243 "EHLO wolverine01.qualcomm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753196AbbEKQK4 (ORCPT ); Mon, 11 May 2015 12:10:56 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=qca.qualcomm.com; i=@qca.qualcomm.com; q=dns/txt; s=qcdkim; t=1431360656; x=1462896656; h=from:cc:to:subject:date:message-id; bh=K66E1frDJTeaU2BURaSfe8Rq1wp8t6FxoKs/2NM54hQ=; b=WoAwSQ3cuJTkCuhqJhPNeWVz3k9SctFvp8sKA0tbo9t0aCGg55jMzIWK 0nk9YWj/sSRTeSyJf39N7is9jHZeir9cir+4+bnKu4DhCE7BSjbvAlMHq MJjEQvMtj2FsH7dIwtyCProeWQWgmWHQnqI3KvJreliOzvIaHGjs1JnTn o=; X-IronPort-AV: E=McAfee;i="5700,7163,7797"; a="117612333" Received: from ironmsg04-r.qualcomm.com ([172.30.46.18]) by wolverine01.qualcomm.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 May 2015 09:10:55 -0700 From: Vladimir Kondratiev Cc: Vladimir Kondratiev , linux-wireless@vger.kernel.org, wil6210@qca.qualcomm.com X-IronPort-AV: E=Sophos;i="5.13,408,1427785200"; d="scan'208";a="968062496" Received: from lx-wigig-72.qualcomm.com ([10.134.16.89]) by Ironmsg04-R.qualcomm.com with ESMTP; 11 May 2015 09:10:54 -0700 To: Kalle Valo Subject: [PATCH v2] wil6210: fix format specifier for dma_addr_t Date: Mon, 11 May 2015 19:10:48 +0300 Message-Id: <1431360648-4854-1-git-send-email-qca_vkondrat@qca.qualcomm.com> X-Mailer: git-send-email 2.1.0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID,T_RP_MATCHES_RCVD,UNPARSEABLE_RELAY autolearn=unavailable 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 Fix format specifier used for dma_addr_t, namely use %pad Debug print virtual address for the same buffer as well. It can be applied as: fixup! wil6210: Add pmc debug mechanism memory management Signed-off-by: Vladimir Kondratiev --- drivers/net/wireless/ath/wil6210/pmc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/wil6210/pmc.c b/drivers/net/wireless/ath/wil6210/pmc.c index 3cb4f35..8a8cdc6 100644 --- a/drivers/net/wireless/ath/wil6210/pmc.c +++ b/drivers/net/wireless/ath/wil6210/pmc.c @@ -92,9 +92,9 @@ void wil_pmc_alloc(struct wil6210_priv *wil, GFP_KERNEL); wil_dbg_misc(wil, - "%s: allocated pring %p. %zd x %d = total %zd bytes\n", + "%s: allocated pring %p => %pad. %zd x %d = total %zd bytes\n", __func__, - (void *)pmc->pring_pa, + pmc->pring_va, &pmc->pring_pa, sizeof(struct vring_tx_desc), num_descriptors, sizeof(struct vring_tx_desc) * num_descriptors);