Skip to contentSkip to conversation

infiniband-diags/perfquery.c: Fix display of PortExtendedSpeedsCounters

PATCH Applied Hal Rosenstock 2 participants 2 messages Dec 1, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 infiniband-diags/perfquery.c: Fix display of PortExtendedSpeedsCounters

Add additional buffer space for output
so no longer chopped after FECCorrectableBlockCtrLane11

---

src/perfquery.c +1 -1
index 0dbb80d..c747d11 100644
@@ -377,7 +377,7 @@ static void common_func(ib_portid_t * portid, int port_num, int mask,
 			const char *name, uint16_t attr,
 			void dump_func(char *, int, void *, int))
 {
-	char buf[1024];
+	char buf[1536];
 
 	if (query) {
 		memset(pc, 0, sizeof(pc));

--
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

Applied
#2 lore raw
In reply to a message not in the archive
Quoted 5 lines · On Thu, 1 Dec 2011 08:21:12 -0800 Hal Rosenstock…

Add additional buffer space for output
so no longer chopped after FECCorrectableBlockCtrLane11

Thanks applied,
Ira

Quoted 14 lines

---

src/perfquery.c +1 -1
index 0dbb80d..c747d11 100644
@@ -377,7 +377,7 @@ static void common_func(ib_portid_t * portid, int port_num, int mask,
 			const char *name, uint16_t attr,
 			void dump_func(char *, int, void *, int))
 {
-	char buf[1024];
+	char buf[1536];
 
 	if (query) {
 		memset(pc, 0, sizeof(pc));
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