@@ -106,6 +106,7 @@ typedef int (*llog_cb_t)(const struct lu_env *, struct llog_handle *,
/* obd_config.c */
char *lustre_cfg_string(struct lustre_cfg *lcfg, u32 index);
+void print_lustre_cfg(struct lustre_cfg *lcfg);
int class_process_config(struct lustre_cfg *lcfg);
int class_process_proc_param(char *prefix, struct lprocfs_vars *lvars,
struct lustre_cfg *lcfg, void *data);
@@ -308,12 +308,13 @@ void lustre_swab_llog_hdr(struct llog_log_hdr *h)
}
EXPORT_SYMBOL(lustre_swab_llog_hdr);
-static void print_lustre_cfg(struct lustre_cfg *lcfg)
+void print_lustre_cfg(struct lustre_cfg *lcfg)
{
int i;
if (!(libcfs_debug & D_OTHER)) /* don't loop on nothing */
return;
+
CDEBUG(D_OTHER, "lustre_cfg: %p\n", lcfg);
CDEBUG(D_OTHER, "\tlcfg->lcfg_version: %#x\n", lcfg->lcfg_version);
@@ -324,10 +325,13 @@ static void print_lustre_cfg(struct lustre_cfg *lcfg)
CDEBUG(D_OTHER, "\tlcfg->lcfg_bufcount: %d\n", lcfg->lcfg_bufcount);
if (lcfg->lcfg_bufcount < LUSTRE_CFG_MAX_BUFCOUNT)
- for (i = 0; i < lcfg->lcfg_bufcount; i++)
- CDEBUG(D_OTHER, "\tlcfg->lcfg_buflens[%d]: %d\n",
- i, lcfg->lcfg_buflens[i]);
+ for (i = 0; i < lcfg->lcfg_bufcount; i++) {
+ CDEBUG(D_OTHER, "\tlcfg->lcfg_buflens[%d]: %d %s\n",
+ i, lcfg->lcfg_buflens[i],
+ lustre_cfg_string(lcfg, i));
+ }
}
+EXPORT_SYMBOL(print_lustre_cfg);
void lustre_swab_lustre_cfg(struct lustre_cfg *lcfg)
{