infiniband-diags/saquery.c: Change lids and port numbers to decimal
PATCH 1/1 infiniband-diags/saquery.c: Change lids and port numbers to decimal
rather than hex
Signed-off-by Hal Rosenstock <[email protected]>
---
infiniband-diags/src/saquery.c +12 -12
@@ -279,14 +279,14 @@ static void dump_node_record(void *data)"\t\tbase_version............0x%X\n" "\t\tclass_version...........0x%X\n" "\t\tnode_type...............%s\n" -"\t\tnum_ports...............0x%X\n" +"\t\tnum_ports...............%u\n" "\t\tsys_guid................0x%016" PRIx64"\n" "\t\tnode_guid...............0x%016" PRIx64"\n" "\t\tport_guid...............0x%016" PRIx64"\n" "\t\tpartition_cap...........0x%X\n" "\t\tdevice_id...............0x%X\n" "\t\trevision................0x%X\n" -"\t\tport_num................0x%X\n" +"\t\tport_num................%u\n" "\t\tvendor_id...............0x%X\n" "\t\tNodeDescription.........%s\n" , cl_ntoh16(nr->lid), cl_ntoh16(nr->resv),
@@ -339,8 +339,8 @@ static void dump_path_record(void *data)"\t\tservice_id..............0x%016" PRIx64"\n" "\t\tdgid....................%s\n" "\t\tsgid....................%s\n" -"\t\tdlid....................0x%X\n" -"\t\tslid....................0x%X\n" +"\t\tdlid....................%u\n" +"\t\tslid....................%u\n" "\t\thop_flow_raw............0x%X\n" "\t\ttclass..................0x%X\n" "\t\tnum_path_revers.........0x%X\n"
@@ -407,9 +407,9 @@ static void dump_portinfo_record(void *data) printf("PortInfoRecord dump:\n" "\t\tEndPortLid..............%u\n" - "\t\tPortNum.................0x%X\n" - "\t\tbase_lid................0x%X\n" - "\t\tmaster_sm_base_lid......0x%X\n" + "\t\tPortNum.................%u\n" + "\t\tbase_lid................%u\n" + "\t\tmaster_sm_base_lid......%u\n" "\t\tcapability_mask.........0x%X\n", cl_ntoh16(p_pir->lid), p_pir->port_num, cl_ntoh16(p_pi->base_lid), cl_ntoh16(p_pi->master_sm_base_lid),
@@ -427,7 +427,7 @@ static void dump_one_portinfo_record(void *data)printf ("PortInfoRecord dump:\n" "\tRID:\n" "\t\tEndPortLid..............%u\n" -"\t\tPortNum.................0x%x\n" +"\t\tPortNum.................%u\n" "\t\tReserved................0x%x\n" "\tPortInfo dump:\n\t\t%s" ,cl_ntoh16 (pir->lid), pir->port_num, pir->resv, buf2);
@@ -630,8 +630,8 @@ static void dump_inform_info_record(void *data)"\t\tSubscriberEnum..........0x%X\n" "\t\tInformInfo dump:\n" "\t\tgid.....................%s\n" -"\t\tlid_range_begin.........0x%X\n" -"\t\tlid_range_end...........0x%X\n" +"\t\tlid_range_begin.........%u\n" +"\t\tlid_range_end...........%u\n" "\t\tis_generic..............0x%X\n" "\t\tsubscribe...............0x%X\n" "\t\ttrap_type...............0x%X\n"
@@ -660,8 +660,8 @@ static void dump_inform_info_record(void *data)"\t\tSubscriberEnum..........0x%X\n" "\t\tInformInfo dump:\n" "\t\tgid.....................%s\n" -"\t\tlid_range_begin.........0x%X\n" -"\t\tlid_range_end...........0x%X\n" +"\t\tlid_range_begin.........%u\n" +"\t\tlid_range_end...........%u\n" "\t\tis_generic..............0x%X\n" "\t\tsubscribe...............0x%X\n" "\t\ttrap_type...............0x%X\n"
--
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): [email protected]
Sasha Khapyorsky
AppliedQuoted 4 lines · Hal Rosenstock
rather than hex
Signed-off-by Hal Rosenstock <[email protected]>
Applied. Thanks.
Sasha
--
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