From patchwork Mon Apr 8 11:36:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2408011 X-Patchwork-Delegate: hal@mellanox.com Return-Path: X-Original-To: patchwork-linux-rdma@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 CF747DFB78 for ; Mon, 8 Apr 2013 11:36:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935117Ab3DHLgh (ORCPT ); Mon, 8 Apr 2013 07:36:37 -0400 Received: from mail-ea0-f180.google.com ([209.85.215.180]:55795 "EHLO mail-ea0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935064Ab3DHLgh (ORCPT ); Mon, 8 Apr 2013 07:36:37 -0400 Received: by mail-ea0-f180.google.com with SMTP id d10so2196380eaj.11 for ; Mon, 08 Apr 2013 04:36:35 -0700 (PDT) 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 :content-type:content-transfer-encoding:x-gm-message-state; bh=GY278W65hiok5QeBm7LbotA3XSxxBZABpyfEaen+sVI=; b=cIRzhuk7veQ3xG090NNejMepOHojwKlyu75JUaUSzjLYPXe+25p1Nm2bsJhlYsIzcQ u/ZdgmZgJ3ohy3Ag6xUY0wBQk1tNB+uRaeYE0wjdeB68JtF8zIlOspCuEYDJC0Je0ffK UCdX4vhb/LzuU6kBk9PUP0wxZSewlzizMobEIB8hgl62Ee8hU8Yn1A8+lafKBbgZ9VHS XVEtbkIPj4Iw0KjiRH4txCC0aHg8/fVBBIGywVpsDJkGwCsG90x6GdXUS1ftRfXfpI9K rKGsnmIbOcaQk38casebWo9WwAy9Joa5l9xpXKvHjzT2HLuPMI1OgPi7bGI2IrqxKAVZ beig== X-Received: by 10.14.104.6 with SMTP id h6mr8713842eeg.5.1365420994316; Mon, 08 Apr 2013 04:36:34 -0700 (PDT) Received: from [192.168.1.102] (c-71-234-225-85.hsd1.ct.comcast.net. [71.234.225.85]) by mx.google.com with ESMTPS id s3sm31535271eem.4.2013.04.08.04.36.32 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 08 Apr 2013 04:36:33 -0700 (PDT) Message-ID: <5162ABBE.2070306@dev.mellanox.co.il> Date: Mon, 08 Apr 2013 07:36:30 -0400 From: Hal Rosenstock User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 MIME-Version: 1.0 To: "linux-rdma (linux-rdma@vger.kernel.org)" Subject: [PATCH opensm] osm_sa_mcmember_record.c: Improve debug log message in validate_modify X-Gm-Message-State: ALoCoQndohN+EarMjFuT0J//FwudhHGZAbB4/JzjIwK5weo6M8ySicxkDN3CpLUc/YjIw6ZiC+gJ Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org to include subnet prefix and not just GUID and display GID in IPv6 format Signed-off-by: Hal Rosenstock --- -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/opensm/osm_sa_mcmember_record.c b/opensm/osm_sa_mcmember_record.c index 4a9ad71..0857a66 100644 --- a/opensm/osm_sa_mcmember_record.c +++ b/opensm/osm_sa_mcmember_record.c @@ -406,11 +406,19 @@ static boolean_t validate_modify(IN osm_sa_t * sa, IN osm_mgrp_t * p_mgrp, request_gid.unicast.interface_id || (*pp_mcm_alias_guid)->port_gid.unicast.prefix != request_gid.unicast.prefix) { + ib_gid_t base_port_gid; + char gid_str[INET6_ADDRSTRLEN]; + char gid_str2[INET6_ADDRSTRLEN]; + + base_port_gid.unicast.prefix = (*pp_mcm_alias_guid)->port_gid.unicast.prefix; + base_port_gid.unicast.interface_id = (*pp_mcm_alias_guid)->p_base_mcm_port->port->guid; OSM_LOG(sa->p_log, OSM_LOG_DEBUG, "No ProxyJoin but different ports: stored:" - "0x%016" PRIx64 " request:0x%016" PRIx64 "\n", - cl_ntoh64((*pp_mcm_alias_guid)->p_base_mcm_port->port->guid), - cl_ntoh64(request_gid.unicast.interface_id)); + "%s request:%s\n", + inet_ntop(AF_INET6, base_port_gid.raw, gid_str, + sizeof gid_str), + inet_ntop(AF_INET6, request_gid.raw, gid_str2, + sizeof gid_str2)); return FALSE; } } else {