From: Hal Rosenstock <hnrose-Wuw85uim5zDR7s880joybQ@public.gmane.org>
To: sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org
Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: [PATCH] infiniband-diags/saquery.c: Change lids and port numbers to decimal
Date: Fri, 6 Nov 2009 15:32:25 -0500 [thread overview]
Message-ID: <20091106203225.GA13461@comcast.net> (raw)
rather than hex
Signed-off-by: Hal Rosenstock <hal.rosenstock-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
---
diff --git a/infiniband-diags/src/saquery.c b/infiniband-diags/src/saquery.c
index 091125d..da28d17 100644
--- a/infiniband-diags/src/saquery.c
+++ b/infiniband-diags/src/saquery.c
@@ -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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next reply other threads:[~2009-11-06 20:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-06 20:32 Hal Rosenstock [this message]
[not found] ` <20091106203225.GA13461-Wuw85uim5zDR7s880joybQ@public.gmane.org>
2009-11-12 2:09 ` [PATCH] infiniband-diags/saquery.c: Change lids and port numbers to decimal Sasha Khapyorsky
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091106203225.GA13461@comcast.net \
--to=hnrose-wuw85uim5zdr7s880joybq@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=sashak-smomgflXvOZWk0Htik3J/w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.