Skip to contentSkip to conversation

infiniband-diags/libibnetdisc/ibnetdisc.c: Better error message

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 infiniband-diags/libibnetdisc/ibnetdisc.c: Better error message

include node GUID and port number

---

libibnetdisc/src/ibnetdisc.c +2 -1
index e4487c1..7ba87fd 100644
@@ -171,7 +171,8 @@ static int recv_port_info(smp_engine_t * engine, ibnd_smp_t * smp,
 	if (!port) {
 		port = node->ports[port_num] = calloc(1, sizeof(*port));
 		if (!port) {
-			IBND_ERROR("Failed to allocate port\n");
+			IBND_ERROR("Failed to allocate 0x%" PRIx64 " port %u\n",
+				    node->guid, port_num);
 			return -1;
 		}
 		port->guid =

--
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): 4DDBF859.7000503-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

Applied
#2 lore raw
Quoted 3 lines · On Tue, 24 May 2011 11:26:33 -0700 Hal Rosenstock…

include node GUID and port number

Thanks, applied,
Ira

Quoted 19 lines

---

libibnetdisc/src/ibnetdisc.c +2 -2
index e4487c1..7ba87fd 100644
@@ -171,7 +171,8 @@ static int recv_port_info(smp_engine_t * engine, ibnd_smp_t * smp,
 	if (!port) {
 		port = node->ports[port_num] = calloc(1, sizeof(*port));
 		if (!port) {
-			IBND_ERROR("Failed to allocate port\n");
+			IBND_ERROR("Failed to allocate 0x%" PRIx64 " port %u\n",
+				    node->guid, port_num);
 			return -1;
 		}
 		port->guid =
--

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