> Index: loader.c > =================================================================== > RCS file: /usr/cvsroot/asterisk/loader.c,v > retrieving revision 1.26 > diff -u -r1.26 loader.c > --- loader.c 3 Sep 2004 14:02:12 -0000 1.26 > +++ loader.c 6 Oct 2004 02:32:57 -0000 > @@ -464,16 +464,18 @@ > { > struct module *m; > int unlock = -1; > + int total_mod_loaded = 0; > if (ast_mutex_trylock(&modlock)) > unlock = 0; > m = module_list; > while(m) { > modentry(m->resource, m->description(), m->usecount()); > m = m->next; > + total_mod_loaded++; > } > if (unlock) > ast_mutex_unlock(&modlock); > - return 0; > + return total_mod_loaded; > } > > int ast_loader_register(int (*v)(void)) > Index: cli.c > =================================================================== > RCS file: /usr/cvsroot/asterisk/cli.c,v > retrieving revision 1.54 > diff -u -r1.54 cli.c > --- cli.c 2 Oct 2004 00:58:31 -0000 1.54 > +++ cli.c 6 Oct 2004 02:32:57 -0000 > @@ -337,7 +337,7 @@ > ast_mutex_lock(&climodentrylock); > climodentryfd = fd; > ast_cli(fd, MODLIST_FORMAT2, "Module", "Description", "Use Count"); > - ast_update_module_list(modlist_modentry); > + ast_cli(fd,"%d modules > loaded\n",ast_update_module_list(modlist_modentry)); > climodentryfd = -1; > ast_mutex_unlock(&climodentrylock); > return RESULT_SUCCESS; > >