[PATCH][TRIVIAL] ibacm/acme.c: Change format for LIDs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


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

Signed-off-by: Hal Rosenstock <hal@xxxxxxxxxxxx>
---
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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Home]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]    [Yosemite Photos]    [Free Online Dating]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Devices]

Add to Google Powered by Linux