ibacm/acm.c: LID format should be unsigned decimal
PATCH 1/1 ibacm/acm.c: LID format should be unsigned decimal
so that unicast LIDs >= 0x8000 and < 0xc000 display as positive rather than negative numbers.
---
src/acm.c +2 -2
@@ -267,7 +267,7 @@ acm_format_name(int level, char *name, size_t name_size,case ACM_EP_INFO_PATH : path = (struct ibv_path_record *) addr;if (path->dlid) { -sprintf (name,"SLID(%d) DLID(%d)" , +sprintf (name,"SLID(%u) DLID(%u)" ,ntohs (path->slid),ntohs (path->dlid)); }else { acm_format_name(level, name, name_size, ACM_ADDRESS_GID,
@@ -275,7 +275,7 @@ acm_format_name(int level, char *name, size_t name_size, }break ;case ACM_ADDRESS_LID : -sprintf (name,"LID(%d)" ,ntohs (*((uint16_t *) addr))); +sprintf (name,"LID(%u)" ,ntohs (*((uint16_t *) addr)));break ;default :strcpy (name,"Unknown" );
--
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
Thanks - I combined this patch with your other LID format change patch. --
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