From patchwork Fri Jun 27 15:02:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Metzmacher X-Patchwork-Id: 4435811 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 947649F2C8 for ; Fri, 27 Jun 2014 15:09:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C52F82026F for ; Fri, 27 Jun 2014 15:09:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C25572020F for ; Fri, 27 Jun 2014 15:09:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753203AbaF0PJf (ORCPT ); Fri, 27 Jun 2014 11:09:35 -0400 Received: from mo4-p05-ob.smtp.rzone.de ([81.169.146.181]:33996 "EHLO mo4-p05-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752845AbaF0PJf (ORCPT ); Fri, 27 Jun 2014 11:09:35 -0400 X-Greylist: delayed 374 seconds by postgrey-1.27 at vger.kernel.org; Fri, 27 Jun 2014 11:09:35 EDT X-RZG-AUTH: :IXQkeEW8Yfo/5haL0ckzWIsAZQXx/f53Kb0ypQqQa88tSf17MIsp/A0Kros= X-RZG-CLASS-ID: mo05 Received: from SERNOX14.fritz.box (xdsl-87-78-211-98.netcologne.de [87.78.211.98]) by smtp.strato.de (RZmta 34.5 DYNA|AUTH) with ESMTPSA id 90178cq5RF3Ir7Q (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate); Fri, 27 Jun 2014 17:03:18 +0200 (CEST) From: Stefan Metzmacher To: Bernard Metzler Cc: Stefan Metzmacher , linux-rdma@vger.kernel.org Subject: [PATCH] siw_cm: use to_sockaddr_in() also within dprint() statements Date: Fri, 27 Jun 2014 17:02:40 +0200 Message-Id: <1403881360-32168-1-git-send-email-metze@samba.org> X-Mailer: git-send-email 1.9.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, 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 Signed-off-by: Stefan Metzmacher --- softiwarp/siw_cm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/softiwarp/siw_cm.c b/softiwarp/siw_cm.c index ad3d617..e4d97bb 100644 --- a/softiwarp/siw_cm.c +++ b/softiwarp/siw_cm.c @@ -1303,10 +1303,10 @@ int siw_connect(struct iw_cm_id *id, struct iw_cm_conn_param *params) id, QP_ID(qp), sdev->ofa_dev.name, sdev->netdev->name); dprint(DBG_CM, "(id=0x%p, QP%d): laddr=(0x%x,%d), raddr=(0x%x,%d)\n", id, QP_ID(qp), - ntohl(id->local_addr.sin_addr.s_addr), - ntohs(id->local_addr.sin_port), - ntohl(id->remote_addr.sin_addr.s_addr), - ntohs(id->remote_addr.sin_port)); + ntohl(to_sockaddr_in(id->local_addr).sin_addr.s_addr), + ntohs(to_sockaddr_in(id->local_addr).sin_port), + ntohl(to_sockaddr_in(id->remote_addr).sin_addr.s_addr), + ntohs(to_sockaddr_in(id->remote_addr).sin_port)); laddr = (struct sockaddr *)&id->local_addr; raddr = (struct sockaddr *)&id->remote_addr; @@ -1832,9 +1832,9 @@ int siw_create_listen(struct iw_cm_id *id, int backlog) "raddr(id) : ipv4=%d.%d.%d.%d, port=%d\n", id, l_ip[0], l_ip[1], l_ip[2], l_ip[3], - ntohs(id->local_addr.sin_port), + ntohs(to_sockaddr_in(id->local_addr).sin_port), r_ip[0], r_ip[1], r_ip[2], r_ip[3], - ntohs(id->remote_addr.sin_port)); + ntohs(to_sockaddr_in(id->remote_addr).sin_port)); in_dev = in_dev_get(sdev->netdev); if (!in_dev) {