[ofa-general] [PATCH] infiniband-diags/ibnetdiscover: Add separator when printing chassis type
sebastien dugue
sebastien.dugue at bull.net
Mon Sep 14 03:59:33 PDT 2009
When grouping is enabled add a '#' separator between the switch guid
and the chassis type and slot.
Signed-off-by: Sebastien Dugue <sebastien.dugue at bull.net>
---
infiniband-diags/src/ibnetdiscover.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/infiniband-diags/src/ibnetdiscover.c b/infiniband-diags/src/ibnetdiscover.c
index 2aa29c8..ce9affc 100644
--- a/infiniband-diags/src/ibnetdiscover.c
+++ b/infiniband-diags/src/ibnetdiscover.c
@@ -226,6 +226,7 @@ void out_switch(ibnd_node_t * node, int group, char *chname)
fprintf(f, "(%" PRIx64 ")",
mad_get_field64(node->info, 0, IB_NODE_PORT_GUID_F));
if (group) {
+ fprintf(f, "\t# ");
str = ibnd_get_chassis_type(node);
if (str)
fprintf(f, "%s ", str);
--
1.6.3.1
More information about the general
mailing list