case ACM_EP_INFO_PATH:
path = (struct ibv_path_record *) addr;
if (path->dlid) {
- sprintf(name, "SLID(%d) DLID(%d)",
+ sprintf(name, "SLID(%u) DLID(%u)",
ntohs(path->slid), ntohs(path->dlid));
} else {
acm_format_name(level, name, name_size, ACM_ADDRESS_GID,
}
break;
case ACM_ADDRESS_LID:
- sprintf(name, "LID(%d)", ntohs(*((uint16_t *) addr)));
+ sprintf(name, "LID(%u)", ntohs(*((uint16_t *) addr)));
break;
default:
strcpy(name, "Unknown");
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);