From: youfeng Date: Wed, 29 Oct 2003 03:47:04 +0000 (+0000) Subject: b_2036 X-Git-Tag: v1_7_0_51~2^9~213 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=89a5dc3c75b332f76cc5635b4a17fc6c30748ada;p=fs%2Flustre-release.git b_2036 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) --- diff --git a/lustre/obdclass/obd_config.c b/lustre/obdclass/obd_config.c index d4ffd0a..31d67c5 100644 --- a/lustre/obdclass/obd_config.c +++ b/lustre/obdclass/obd_config.c @@ -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,