From: thantry Date: Thu, 3 Oct 2002 22:25:54 +0000 (+0000) Subject: Added more debug to LProc cleanup X-Git-Tag: 0.5.14~74 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=15d696e6090e6ac53fc2068404aa67e64fda7ae4;p=fs%2Flustre-release.git Added more debug to LProc cleanup --- diff --git a/lustre/obdclass/lprocfs.c b/lustre/obdclass/lprocfs.c index 4fcdeb6..0dd7e67 100644 --- a/lustre/obdclass/lprocfs.c +++ b/lustre/obdclass/lprocfs.c @@ -793,6 +793,8 @@ int lprocfs_get_nm(char* name, lprocfs_obd_nm_t* collection) int lprocfs_dereg_dev(struct obd_device* device) { struct proc_dir_entry* temp; + CDEBUG(D_OTHER, "LPROCFS removing device = %s\n", \ + device->obd_name); if (!device) { CDEBUG(D_OTHER, "! LProcfs: Null pointer !\n"); @@ -804,8 +806,6 @@ int lprocfs_dereg_dev(struct obd_device* device) return LPROCFS_FAILURE; } - CDEBUG(D_OTHER, "SEARCH: Device = %s\n", device->obd_name); - temp = lprocfs_bfs_srch(proc_lustre_dev_root->subdir, \ device->obd_name); if (temp == 0) { @@ -821,6 +821,8 @@ int lprocfs_dereg_dev(struct obd_device* device) if (device->counters) OBD_FREE(device->counters, device->cntr_mem_size); + CDEBUG(D_OTHER, "LPROCFS removed device = %s\n", \ + device->obd_name); return LPROCFS_SUCCESS; }