[ofa-general] {PATCH 2/2] OpenSM/osm_helper: Clarify the proper usage of osm_get_node_type_str_fixed_width
Hal Rosenstock
halr at voltaire.com
Wed Apr 25 06:50:30 PDT 2007
OpenSM/osm_helper: osm_get_node_type_str_fixed_width is to be used for
decoding the node_type from the node info attribute only
Signed-off-by: Hal Rosenstock <halr at voltaire.com>
diff --git a/osm/include/opensm/osm_helper.h b/osm/include/opensm/osm_helper.h
index 3eab913..7164cc3 100644
--- a/osm/include/opensm/osm_helper.h
+++ b/osm/include/opensm/osm_helper.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2004-2006 Voltaire, Inc. All rights reserved.
+ * Copyright (c) 2004-2007 Voltaire, Inc. All rights reserved.
* Copyright (c) 2002-2005 Mellanox Technologies LTD. All rights reserved.
* Copyright (c) 1996-2003 Intel Corporation. All rights reserved.
*
@@ -538,7 +538,7 @@ osm_get_port_state_str_fixed_width(
const char*
osm_get_node_type_str_fixed_width(
- IN uint32_t node_type );
+ IN uint8_t node_type );
const char*
osm_get_manufacturer_str(
diff --git a/osm/opensm/osm_helper.c b/osm/opensm/osm_helper.c
index c4e8ec5..a47cb89 100644
--- a/osm/opensm/osm_helper.c
+++ b/osm/opensm/osm_helper.c
@@ -2338,7 +2338,7 @@ static const char* const __osm_node_type
**********************************************************************/
const char*
osm_get_node_type_str_fixed_width(
- IN uint32_t node_type )
+ IN uint8_t node_type )
{
if( node_type > IB_NODE_TYPE_ROUTER )
node_type = 0;
More information about the general
mailing list