From: Hal Rosenstock <hal-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Alex Netes <alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH] opensm/osmtest/osmtest.c: Fix endian in some log messages
Date: Sat, 04 Jun 2011 11:06:35 -0400 [thread overview]
Message-ID: <4DEA49FB.1040905@dev.mellanox.co.il> (raw)
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/osmtest/osmtest.c b/osmtest/osmtest.c
index 7ecc8ce..baf7440 100644
--- a/osmtest/osmtest.c
+++ b/osmtest/osmtest.c
@@ -865,7 +865,7 @@ osmtest_get_path_rec_by_guid_pair(IN osmtest_t * const p_osmt,
OSM_LOG(&p_osmt->log, OSM_LOG_VERBOSE,
"Query for path from 0x%" PRIx64 " to 0x%" PRIx64 "\n",
- sguid, dguid);
+ cl_ntoh64(sguid), cl_ntoh64(dguid));
status = osmv_query_sa(p_osmt->h_bind, &req);
if (status != IB_SUCCESS) {
@@ -928,9 +928,11 @@ osmtest_get_path_rec_by_gid_pair(IN osmtest_t * const p_osmt,
OSM_LOG(&p_osmt->log, OSM_LOG_VERBOSE,
"Query for path from 0x%016" PRIx64 " 0x%016" PRIx64
- " to 0x%016" PRIx64 " 0x%016" PRIx64 "\n", sgid.unicast.prefix,
- sgid.unicast.interface_id, dgid.unicast.prefix,
- dgid.unicast.interface_id);
+ " to 0x%016" PRIx64 " 0x%016" PRIx64 "\n",
+ cl_ntoh64(sgid.unicast.prefix),
+ cl_ntoh64(sgid.unicast.interface_id),
+ cl_ntoh64(dgid.unicast.prefix),
+ cl_ntoh64(dgid.unicast.interface_id));
status = osmv_query_sa(p_osmt->h_bind, &req);
if (status != IB_SUCCESS) {
@@ -1985,7 +1987,8 @@ osmtest_get_path_rec_by_lid_pair(IN osmtest_t * const p_osmt,
req.sm_key = 0;
OSM_LOG(&p_osmt->log, OSM_LOG_VERBOSE,
- "Query for path from 0x%X to 0x%X\n", slid, dlid);
+ "Query for path from 0x%X to 0x%X\n",
+ cl_ntoh16(slid), cl_ntoh16(dlid));
status = osmv_query_sa(p_osmt->h_bind, &req);
if (status != IB_SUCCESS) {
OSM_LOG(&p_osmt->log, OSM_LOG_ERROR, "ERR 0053: "
--
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:[~2011-06-04 15:06 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-04 15:06 Hal Rosenstock [this message]
[not found] ` <4DEA49FB.1040905-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-06-06 13:17 ` [PATCH] opensm/osmtest/osmtest.c: Fix endian in some log messages Alex Netes
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=4DEA49FB.1040905@dev.mellanox.co.il \
--to=hal-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
--cc=alexne-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox