Whamcloud - gitweb
b_2036
authoryoufeng <youfeng>
Wed, 29 Oct 2003 03:47:04 +0000 (03:47 +0000)
committeryoufeng <youfeng>
Wed, 29 Oct 2003 03:47:04 +0000 (03:47 +0000)
formats nids for readability, from "nid" to "nid (format)"
nid    : using LPX64 everywhere
format : "%u:%d.%d.%d.%d" for IP NIDS (leading part iscluster ID)
         "%u:%u" for non-IP NIDs (leading part is cluster ID)

lustre/obdclass/obd_config.c

index d4ffd0a..31d67c5 100644 (file)
@@ -389,6 +389,7 @@ void class_del_profile(char *prof)
 int class_process_config(struct lustre_cfg *lcfg)
 {
        struct obd_device *obd;
+        char str[PTL_NALFMT_SIZE];
         int err;
 
         LASSERT(lcfg && !IS_ERR(lcfg));
@@ -403,7 +404,8 @@ int class_process_config(struct lustre_cfg *lcfg)
         }
         case LCFG_ADD_UUID: {
                 CDEBUG(D_IOCTL, "adding mapping from uuid %s to nid "LPX64
-                       ", nal %d\n", lcfg->lcfg_inlbuf1, lcfg->lcfg_nid,
+                       " (%s), nal %d\n", lcfg->lcfg_inlbuf1, lcfg->lcfg_nid,
+                       portals_nid2str(lcfg->lcfg_nal, lcfg->lcfg_nid, str),
                        lcfg->lcfg_nal);
 
                 err = class_add_uuid(lcfg->lcfg_inlbuf1, lcfg->lcfg_nid,