[openib-general] [PATCH] fix core dump if umad_register() fails

Ralph Campbell ralphc at pathscale.com
Wed May 3 11:58:17 PDT 2006


This patch fixes a core dump problem if debugging is on and
umad_register() fails.

Signed-off-by: Ralph Campbell <ralph.campbell at qlogic.com>

Index: src/userspace/management/libibumad/src/umad.c
===================================================================
--- src/userspace/management/libibumad/src/umad.c	(revision 6885)
+++ src/userspace/management/libibumad/src/umad.c	(working copy)
@@ -888,7 +888,7 @@
 		return req.id; 		/* return agentid */
 	}
 	
-	DEBUG("portid %d registering qp %d class %s version %d oui 0x%x failed: %m",
+	DEBUG("portid %d registering qp %d class 0x%x version %d oui 0x%x failed: %m",
 		portid, req.qpn, req.mgmt_class, req.mgmt_class_version, oui);
 	return -EPERM;	
 }


-- 
Ralph Campbell <ralph.campbell at qlogic.com>




More information about the general mailing list