public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH][TRIVIAL] ibacm/acme.c: Change format for LIDs
@ 2012-04-05 20:05 Hal Rosenstock
  0 siblings, 0 replies; only message in thread
From: Hal Rosenstock @ 2012-04-05 20:05 UTC (permalink / raw)
  To: Hefty, Sean
  Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)


"Standard" format for unicast LIDs is decimal rather than hex

Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/src/acme.c b/src/acme.c
index 3d7461b..def8942 100644
--- a/src/acme.c
+++ b/src/acme.c
@@ -413,8 +413,8 @@ static void show_path(struct ibv_path_record *path)
 	printf("  dgid: %s\n", gid);
 	inet_ntop(AF_INET6, path->sgid.raw, gid, sizeof gid);
 	printf("  sgid: %s\n", gid);
-	printf("  dlid: 0x%x\n", ntohs(path->dlid));
-	printf("  slid: 0x%x\n", ntohs(path->slid));
+	printf("  dlid: %u\n", ntohs(path->dlid));
+	printf("  slid: %u\n", ntohs(path->slid));
 	fl_hop = ntohl(path->flowlabel_hoplimit);
 	printf("  flow label: 0x%x\n", fl_hop >> 8);
 	printf("  hop limit: %d\n", (uint8_t) fl_hop);
--
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

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-05 20:05 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-05 20:05 [PATCH][TRIVIAL] ibacm/acme.c: Change format for LIDs Hal Rosenstock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox