From patchwork Thu Mar 7 11:36:52 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hal Rosenstock X-Patchwork-Id: 2231151 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 3F143DF223 for ; Thu, 7 Mar 2013 11:36:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756744Ab3CGLg4 (ORCPT ); Thu, 7 Mar 2013 06:36:56 -0500 Received: from mail-ee0-f42.google.com ([74.125.83.42]:49711 "EHLO mail-ee0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932455Ab3CGLg4 (ORCPT ); Thu, 7 Mar 2013 06:36:56 -0500 Received: by mail-ee0-f42.google.com with SMTP id b47so212643eek.1 for ; Thu, 07 Mar 2013 03:36:55 -0800 (PST) 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:cc :subject:content-type:content-transfer-encoding:x-gm-message-state; bh=MkIEHpfdVrv+fMabHApwesq9xDJNZdZzSH68Zk9/PjY=; b=GxHdz9n4xojZWIjNThvwWdMp1EGFpI3mf5iOdMU3er/sIFlrZZyjb7Wb+aJuSOA3c4 A5+q5Kqmram2dtwCtyZWYVZvaWAF8lzb3/fyQINmn6dxSb8d0pHirR9uGAGrxexpiV3O 4eIlLd6TjNCAlHYyVAutq1vtP0VAvqVX/z/8JBYQD5hpxZwkpteAygmcQzUMhJQlvjxe AKXkOVnGwV9TK6lariWoqvp+X6VAvB8rUjWFz9nxyny0RJ32kz6ypYi0T/i6RNWogjby Xw7BcLETJNhVbynAoQDyQp3Iafqrf9/QxC46+DLvMVWqIIfR2udib4P7NycpMBPBDTSP f+IQ== X-Received: by 10.14.216.2 with SMTP id f2mr92858351eep.44.1362656214724; Thu, 07 Mar 2013 03:36:54 -0800 (PST) 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 q42sm1742107eem.14.2013.03.07.03.36.53 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 07 Mar 2013 03:36:54 -0800 (PST) Message-ID: <51387BD4.5070900@dev.mellanox.co.il> Date: Thu, 07 Mar 2013 06:36:52 -0500 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: Ira Weiny Subject: [PATCH] libibumad: Minor fixups for previous umad_str patch X-Gm-Message-State: ALoCoQkzJmGdeKvkwIBL4mohkR55YOoyKMYna5uSdjiSKrFQMf27d1hF3eJkw4WeXp314ErGh5ta Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org 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/src/libibumad.map b/src/libibumad.map index af68d11..0b39333 100644 --- a/src/libibumad.map +++ b/src/libibumad.map @@ -32,7 +32,8 @@ IBUMAD_1.0 { umad_dump; umad_class_str; umad_method_str; - umad_mad_status_str; + umad_common_mad_status_str; + umad_sa_status_str; umad_attribute_str; local: *; }; diff --git a/src/umad_str.c b/src/umad_str.c index 6dca087..957552f 100644 --- a/src/umad_str.c +++ b/src/umad_str.c @@ -83,7 +83,7 @@ const char * umad_class_str(uint8_t mgmt_class) return (""); } -static char * umad_common_method_str(uint8_t method) +static const char * umad_common_method_str(uint8_t method) { switch(method) { case UMAD_METHOD_GET: @@ -107,7 +107,7 @@ static char * umad_common_method_str(uint8_t method) } } -static char * umad_sa_method_str(uint8_t method) +static const char * umad_sa_method_str(uint8_t method) { switch(method) { case UMAD_SA_METHOD_GET_TABLE: @@ -186,7 +186,7 @@ const char * umad_sa_mad_status_str(be16_t status) return ("Undefined Error"); } -static char *umad_common_attr_str(be16_t attr_id) +static const char *umad_common_attr_str(be16_t attr_id) { switch(ntohs(attr_id)) { case UMAD_ATTR_CLASS_PORT_INFO: @@ -200,7 +200,7 @@ static char *umad_common_attr_str(be16_t attr_id) } } -static char * umad_sm_attr_str(be16_t attr_id) +static const char * umad_sm_attr_str(be16_t attr_id) { switch(ntohs(attr_id)) { case UMAD_SMP_ATTR_NODE_DESC: @@ -239,7 +239,7 @@ static char * umad_sm_attr_str(be16_t attr_id) return (""); } -static char * umad_sa_attr_str(be16_t attr_id) +static const char * umad_sa_attr_str(be16_t attr_id) { switch(ntohs(attr_id)) { case UMAD_SA_ATTR_NODE_REC: @@ -286,7 +286,7 @@ static char * umad_sa_attr_str(be16_t attr_id) return (""); } -static char * umad_cm_attr_str(be16_t attr_id) +static const char * umad_cm_attr_str(be16_t attr_id) { switch(ntohs(attr_id)) { case UMAD_CM_ATTR_REQ: