Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion nvme-print-json.c
Original file line number Diff line number Diff line change
Expand Up @@ -5641,7 +5641,7 @@ static void obj_add_traddr(struct json_object *o, const char *k, __u8 adrfam, __
size = INET6_ADDRSTRLEN;
}

if (inet_ntop(af, libnvmf_adrfam_str(adrfam), dst, size))
if (inet_ntop(af, traddr, dst, size))
obj_add_str(o, k, dst);
}

Expand Down
2 changes: 1 addition & 1 deletion nvme-print-stdout.c
Original file line number Diff line number Diff line change
Expand Up @@ -6651,7 +6651,7 @@ static void print_traddr(char *field, __u8 adrfam, __u8 *traddr)
size = INET6_ADDRSTRLEN;
}

if (inet_ntop(af, libnvmf_adrfam_str(adrfam), dst, size))
if (inet_ntop(af, traddr, dst, size))
printf("%s: %s\n", field, dst);
}

Expand Down
Loading