From patchwork Fri Apr 11 11:23:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 3967931 X-Patchwork-Delegate: hal@mellanox.com 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 442CF9F336 for ; Fri, 11 Apr 2014 11:23:25 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7A0F2207FD for ; Fri, 11 Apr 2014 11:23:24 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id DADFB2064D for ; Fri, 11 Apr 2014 11:23:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754365AbaDKLXQ (ORCPT ); Fri, 11 Apr 2014 07:23:16 -0400 Received: from mail-we0-f177.google.com ([74.125.82.177]:60535 "EHLO mail-we0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754251AbaDKLXO (ORCPT ); Fri, 11 Apr 2014 07:23:14 -0400 Received: by mail-we0-f177.google.com with SMTP id u57so5171769wes.22 for ; Fri, 11 Apr 2014 04:23:12 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:content-type:content-transfer-encoding; bh=bnLOuw/Y5+P3MQbJoGhppfBEWz4vvhFK370gl556U2w=; b=S9uCLuNVNiQKCWF3ctkswwRSTqcASbc8Ud6eC7hkfmV2cr1HVnYNOh6rJFBxW61QjO 9ZZpkbkCZrHoxsWbwZ4FkCySAb9S3IWrCMli+/rOsGm5zPkbGokTRZ2yndYz9KrIuOUy Q3MCyL5YSoz7NygeQoYbZxyxelIbN4Dz01BDXA/Mar6nmLVwoBel8K9FBI+gerUGOJPL hP1IMx2qXFQ4Xa0TLrE1fG/yvfI2UUL+OSEWiu9/A5JBZU3QpWA/4KT9H+T9FqR/E7cv LM9535z32KEVzAgn0dzJdZ3rBo7zJWELWef+qYHLeJSo88T8KSHa85Q5szp1fI+F7mPH yYxQ== X-Gm-Message-State: ALoCoQkXtlLJSwMufgY5YUxADYL1xKjgF5Ov5zDo3QFuedeOhdFNQvE62scoMKOnPV7kWYyfMAqE X-Received: by 10.180.89.211 with SMTP id bq19mr2992465wib.58.1397215392698; Fri, 11 Apr 2014 04:23:12 -0700 (PDT) Received: from [192.168.1.102] (c-98-229-118-119.hsd1.ma.comcast.net. [98.229.118.119]) by mx.google.com with ESMTPSA id n5sm3927577wiz.1.2014.04.11.04.23.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 11 Apr 2014 04:23:11 -0700 (PDT) Message-ID: <5347D09A.9050707@dev.mellanox.co.il> Date: Fri, 11 Apr 2014 07:23:06 -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)" CC: "Susan Coulter (skc@lanl.gov)" Subject: [PATCH opensm] osm_sa_mad_ctrl.c: In sa_mad_ctrl_rcv_callback, improve 1A04 error log message Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 to include more info on incoming SA MAD 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_mad_ctrl.c b/opensm/osm_sa_mad_ctrl.c index 902803e..61fcb0b 100644 --- a/opensm/osm_sa_mad_ctrl.c +++ b/opensm/osm_sa_mad_ctrl.c @@ -331,9 +331,12 @@ static void sa_mad_ctrl_rcv_callback(IN osm_madw_t * p_madw, IN void *context, if (p_sa_mad->sm_key != 0 && p_sa_mad->sm_key != p_ctrl->p_subn->opt.sa_key) { OSM_LOG(p_ctrl->p_log, OSM_LOG_ERROR, "ERR 1A04: " - "Non-Zero SA MAD SM_Key: 0x%" PRIx64 " != SM_Key: 0x%" - PRIx64 "; MAD ignored\n", cl_ntoh64(p_sa_mad->sm_key), - cl_ntoh64(p_ctrl->p_subn->opt.sa_key)); + "Non-Zero MAD SM_Key: 0x%" PRIx64 " != SM_Key: 0x%" + PRIx64 "; SA MAD ignored for method 0x%X attribute 0x%X (%s)\n", + cl_ntoh64(p_sa_mad->sm_key), + cl_ntoh64(p_ctrl->p_subn->opt.sa_key), + p_sa_mad->method, cl_ntoh16(p_sa_mad->attr_id), + ib_get_sa_attr_str(p_sa_mad->attr_id)); osm_mad_pool_put(p_ctrl->p_mad_pool, p_madw); goto Exit; }