From: Hal Rosenstock Subject: [PATCH] libibmad/dump.c: In mad_dump_mtu, don't set buf[0] to 0 Date: Wed, 05 Dec 2012 12:00:26 -0500 Message-ID: <50BF7DAA.9080902@dev.mellanox.co.il> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Sender: linux-rdma-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Ira Weiny Cc: "linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)" List-Id: linux-rdma@vger.kernel.org as this causes invalid MTUCap not to be displayed in output Signed-off-by: Hal Rosenstock --- diff --git a/src/dump.c b/src/dump.c index 24e671b..db1abc7 100644 --- a/src/dump.c +++ b/src/dump.c @@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html