Skip to contentSkip to conversation

libibmad/dump.c: In mad_dump_mtu, don't set buf[0] to 0

PATCH Applied Hal Rosenstock 2 participants 2 messages Dec 5, 2012 – Dec 8, 2012 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libibmad/dump.c: In mad_dump_mtu, don't set buf[0] to 0

as this causes invalid MTUCap not to be displayed in output

---

src/dump.c +0 -1
index 24e671b..db1abc7 100644
@@ -476,7 +476,6 @@ void mad_dump_mtu(char *buf, int bufsz, void *val, int valsz)
 		break;
 	default:
 		snprintf(buf, bufsz, "?(%d)", mtu);
-		buf[0] = 0;
 	}
 }
 

--
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): 50BF7DAA.9080902-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

Applied
#2 lore raw
Quoted 4 lines · On Wed, 05 Dec 2012 12:00:26 -0500 Hal Rosenstock…

as this causes invalid MTUCap not to be displayed in output

Thanks applied,
Ira

Quoted 17 lines

---

src/dump.c +0 -2
index 24e671b..db1abc7 100644
@@ -476,7 +476,6 @@ void mad_dump_mtu(char *buf, int bufsz, void *val, int valsz)
 		break;
 	default:
 		snprintf(buf, bufsz, "?(%d)", mtu);
-		buf[0] = 0;
 	}
 }
 
--

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

Signature · 9 lines
Ira Weiny
Member of Technical Staff
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