On Tue, 15 Mar 2011, Enlightenment SVN wrote:

> Log:
> Efreet: Add some logging

why not using eina_log ?

Vincent

>
> Author:       englebass
> Date:         2011-03-15 10:07:19 -0700 (Tue, 15 Mar 2011)
> New Revision: 57769
> Trac:         http://trac.enlightenment.org/e/changeset/57769
>
> Modified:
>  trunk/efreet/src/bin/efreet_icon_cache_create.c
>
> Modified: trunk/efreet/src/bin/efreet_icon_cache_create.c
> ===================================================================
> --- trunk/efreet/src/bin/efreet_icon_cache_create.c   2011-03-15 16:57:16 UTC 
> (rev 57768)
> +++ trunk/efreet/src/bin/efreet_icon_cache_create.c   2011-03-15 17:07:19 UTC 
> (rev 57769)
> @@ -743,6 +743,7 @@
>
>     icon_themes = 
> eina_hash_string_superfast_new(EINA_FREE_CB(icon_theme_free));
>
> +    if (verbose) printf("opening theme cache\n");
>     /* open theme file */
>     theme_ef = eet_open(efreet_icon_theme_cache_file(), 
> EET_FILE_MODE_READ_WRITE);
>     if (!theme_ef) goto on_error_efreet;
> @@ -778,6 +779,7 @@
>         free(keys);
>     }
>
> +    if (verbose) printf("scan for themes\n");
>     /* scan themes */
>     cache_theme_scan(efreet_icon_deprecated_user_dir_get());
>     cache_theme_scan(efreet_icon_user_dir_get());
> @@ -809,10 +811,12 @@
> #ifndef STRICT_SPEC
>         if (!theme->theme.name.name) continue;
> #endif
> +        if (verbose) printf("scan theme %s\n", theme->theme.name.name);
>
>         changed = EINA_FALSE;
>         themes = eina_hash_string_superfast_new(NULL);
>
> +        if (verbose) printf("open icon file\n");
>         /* open icon file */
>         icon_ef = 
> eet_open(efreet_icon_cache_file(theme->theme.name.internal), 
> EET_FILE_MODE_READ_WRITE);
>         if (!icon_ef) goto on_error_efreet;
> @@ -862,6 +866,7 @@
>         if (!theme->dirs)
>             theme->dirs = eina_hash_string_superfast_new(NULL);
>
> +        if (verbose) printf("scan icons\n");
>         if (cache_scan(&(theme->theme), themes, icons, theme->dirs, &changed))
>         {
>             if (verbose)
> @@ -901,6 +906,7 @@
>
>     changed = EINA_FALSE;
>
> +    if (verbose) printf("open fallback file\n");
>     /* open icon file */
>     icon_ef = eet_open(efreet_icon_cache_file(EFREET_CACHE_ICON_FALLBACK), 
> EET_FILE_MODE_READ_WRITE);
>     if (!icon_ef) goto on_error_efreet;
> @@ -950,6 +956,7 @@
>     if (!theme->dirs)
>         theme->dirs = eina_hash_string_superfast_new(NULL);
>
> +    if (verbose) printf("scan fallback icons\n");
>     /* Save fallback in the right part */
>     if (cache_fallback_scan(icons, theme->dirs, &changed))
>     {
> @@ -997,6 +1004,7 @@
>         }
>     }
>
> +    if (verbose) printf("done\n");
> on_error_efreet:
>     efreet_shutdown();
>
>
>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d
> _______________________________________________
> enlightenment-svn mailing list
> enlightenment-...@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>
>

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to