if (!active) { /* don't know peer's nid yet */
*peerid = recv_id;
} else if (peerid->pid != recv_id.pid ||
- peerid->pid != recv_id.nid) {
+ peerid->nid != recv_id.nid) {
LCONSOLE_ERROR("Connected successfully to %s on host "
"%u.%u.%u.%u, but they claimed they were "
"%s; please check your Lustre "
char *
libcfs_id2str(ptl_process_id_t id)
{
- char *str = libcfs_nid2str(id.nid);
- int len = strlen(str);
-
- snprintf(str + len, PTL_NIDSTR_SIZE - len, "-%u", id.pid);
+ char *str = libcfs_next_nidstring();
+
+ snprintf(str, PTL_NIDSTR_SIZE, "%u-%s", id.pid, libcfs_nid2str(id.nid));
return str;
}