Whamcloud - gitweb
i=eeb:
[fs/lustre-release.git] / lnet / libcfs / nidstrings.c
index 78a255d..ae8794c 100644 (file)
@@ -472,6 +472,12 @@ libcfs_id2str(lnet_process_id_t id)
 {
         char *str = libcfs_next_nidstring();
 
+        if (id.pid == LNET_PID_ANY) {
+                snprintf(str, LNET_NIDSTR_SIZE,
+                         "LNET_PID_ANY-%s", libcfs_nid2str(id.nid));
+                return str;
+        }
+
         snprintf(str, LNET_NIDSTR_SIZE, "%s%u-%s",
                  ((id.pid & LNET_PID_USERFLAG) != 0) ? "U" : "",
                  (id.pid & ~LNET_PID_USERFLAG), libcfs_nid2str(id.nid));
@@ -527,7 +533,8 @@ EXPORT_SYMBOL(libcfs_setnet0alias);
 void
 libcfs_setnet0alias(int lnd)
 {
-        LCONSOLE_ERROR("Liblustre cannot interoperate with old Portals.\n"
-                       "portals_compatibility must be set to 'none'.\n");
+        LCONSOLE_ERROR_MSG(0x125, "Liblustre cannot interoperate with old "
+                           "Portals.\nportals_compatibility must be set to "
+                           "'none'.\n");
 }
 #endif