Skip to contentSkip to conversation

infiniband-diags/ibnetdiscover.c: Eliminate blank line when sysimgguid is 0

PATCH In review Hal Rosenstock 2 participants 2 messages Apr 27, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 infiniband-diags/ibnetdiscover.c: Eliminate blank line when sysimgguid is 0

---

src/ibnetdiscover.c +3 -1
index ffb5ea2..9768877 100644
@@ -215,7 +215,9 @@ void out_ids(ibnd_node_t * node, int group, char *chname, char *out_prefix)
 			fprintf(f, " slot %d",
 				node->ports[1]->remoteport->portnum);
 	}
-	fprintf(f, "\n");
+	if (sysimgguid ||
+	    (group && node->chassis && node->chassis->chassisnum))
+		fprintf(f, "\n");
 }
 
 uint64_t out_chassis(ibnd_fabric_t * fabric, unsigned char chassisnum)

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4DB872FF.9050201-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

#2 lore raw
Quoted 2 lines · On Wed, 27 Apr 2011 12:48:15 -0700 Hal Rosenstock…

Thanks,applied,
Ira

Quoted 16 lines

---

src/ibnetdiscover.c +3 -1
index ffb5ea2..9768877 100644
@@ -215,7 +215,9 @@ void out_ids(ibnd_node_t * node, int group, char *chname, char *out_prefix)
 			fprintf(f, " slot %d",
 				node->ports[1]->remoteport->portnum);
 	}
-	fprintf(f, "\n");
+	if (sysimgguid ||
+	    (group && node->chassis && node->chassis->chassisnum))
+		fprintf(f, "\n");
 }
 
 uint64_t out_chassis(ibnd_fabric_t * fabric, unsigned char chassisnum)
Signature · 9 lines
Ira Weiny
Math Programmer/Computer Scientist
Lawrence Livermore National Lab
925-423-8008
[email protected]
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html