"Standard" for LID printing is unsigned rather than signed decimal
Signed-off-by: Hal Rosenstock <[email protected]> --- diff --git a/src/saquery.c b/src/saquery.c index 837d8ae..0f39064 100644 --- a/src/saquery.c +++ b/src/saquery.c @@ -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
