Skip to contentSkip to conversation

saquery.c: In print_node_record, change LID print format

PATCH In review Hal Rosenstock 2 participants 2 messages Feb 26, 2014 – Mar 4, 2014 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 saquery.c: In print_node_record, change LID print format

"Standard" for LID printing is unsigned rather than signed decimal

---

src/saquery.c +1 -1
index 837d8ae..0f39064 100644
@@ -186,7 +186,7 @@ static void print_node_record(ib_node_record_t * node_record)
 	switch (node_print_desc) {
 	case LID_ONLY:
 	case UNIQUE_LID_ONLY:
-		printf("%d\n", cl_ntoh16(node_record->lid));
+		printf("%u\n", cl_ntoh16(node_record->lid));
 		return;
 	case GUID_ONLY:
 		printf("0x%016" PRIx64 "\n", cl_ntoh64(p_ni->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): 530E0752.1000709-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org

#2 lore raw
Quoted 9 lines

-----Original Message-----
From: Hal Rosenstock [mailto:[email protected]]
Sent: Wednesday, February 26, 2014 7:25 AM
To: Weiny, Ira
Cc: linux-rdma ([email protected])
Subject: [PATCH infiniband-diags] saquery.c: In print_node_record, change LID print format

Quoted 3 lines

"Standard" for LID printing is unsigned rather than signed decimal

Thanks applied,
Ira
--
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