if (theme_name && strcmp(theme_name, theme->name.internal))
{
/* FIXME: this is bad if people have pointer to this cache, things will go wrong */
- INF("theme_name change from `%s` to `%s`", theme_name, theme->name.internal);
+ INF("theme_name change from '%s' to '%s'", theme_name, theme->name.internal);
IF_RELEASE(theme_name);
icon_cache = efreet_cache_close(icon_cache);
eina_hash_free(icons);
/* If less than one second since last stat, return desktop */
if ((ecore_time_get() - cache->check_time) < 1)
{
- INF("Return without stat %f %f", ecore_time_get(), cache->check_time);
+ INF("Return without stat %f %f for file '%s'", ecore_time_get(), cache->check_time, file);
eina_lock_release(&_lock);
return &cache->desktop;
}
if (cache->desktop.load_time == ecore_file_mod_time(cache->desktop.orig_path))
{
- INF("Return with stat %f %f", ecore_time_get(), cache->check_time);
+ INF("Return with stat %f %f for file '%s'", ecore_time_get(), cache->check_time, file);
cache->check_time = ecore_time_get();
eina_lock_release(&_lock);
return &cache->desktop;
if (cache->desktop.load_time != ecore_file_mod_time(cache->desktop.orig_path))
{
/* Don't return stale data */
- INF("We got stale data in the desktop cache");
+ INF("We got stale data in the desktop cache for file '%s'", cache->desktop.orig_path);
efreet_cache_desktop_free(&cache->desktop);
eina_hash_set(desktops, file, NON_EXISTING);
}
curr = eina_hash_find(desktops, desktop->orig_path);
if (curr == desktop)
{
- INF("Found in current cache, purge\n");
+ INF("Found '%s' in current cache, purge", desktop->orig_path);
eina_hash_del_by_key(desktops, desktop->orig_path);
}
curr = eina_hash_find(d->hash, desktop->orig_path);
if (curr == desktop)
{
- INF("Found in old cache, purge\n");
+ INF("Found '%s' in old cache, purge", desktop->orig_path);
eina_hash_del_by_key(d->hash, desktop->orig_path);
if (eina_hash_population(d->hash) == 0)
{
- INF("Cache empty, close file\n");
+ INF("Cache empty, close file");
eina_hash_free(d->hash);
eet_close(d->ef);
free(d);
if (*s)
{
#ifdef STRICT_SPEC
- WRN("[Efreet]: Found a string list without ';' "
- "at the end: %s", string);
+ WRN("Found a string list without ';' at the end: '%s'", string);
#endif
list = eina_list_append(list, (void *)eina_stringshare_add(s));
}
if (!ok) ok = efreet_ini_section_set(ini, "KDE Desktop Entry");
if (!ok)
{
- ERR("efreet_desktop_new error: no Desktop Entry section");
+ ERR("no Desktop Entry section in file '%s'", desktop->orig_path);
error = 1;
}
if (val) desktop->name = strdup(val);
else
{
- ERR("efreet_desktop_generic_fields_parse error: no Name or _Name fields");
+ ERR("no Name or _Name fields in file '%s'", desktop->orig_path);
return 0;
}
break;
case 'v':
case 'm':
- WRN("[Efreet]: Deprecated conversion char: '%c' in file '%s'",
+ WRN("Deprecated conversion char: '%c' in file '%s'",
*p, command->desktop->orig_path);
break;
case '%':
break;
default:
#ifdef STRICT_SPEC
- WRN("[Efreet_desktop]: Unknown conversion character: '%c'", *p);
+ WRN("Unknown conversion character: '%c' in file '%s'", *p, command->desktop->orig_path);
#endif
break;
}
if (!strcmp(ext, ext2))
{
#ifdef STRICT_SPEC
- WRN("[Efreet]: Requesting an icon with an extension: %s",
+ WRN("Requesting an icon with an extension: %s",
icon);
#endif
*ext = '\0';
Efreet_Cache_Icon *cache;
cache = efreet_cache_icon_find(theme, tmp);
value = efreet_icon_lookup_icon(cache, size);
- if (!value) INF("lookup for `%s` failed in theme `%s` with %p.", icon, theme_name, cache);
+ if (!value) INF("lookup for '%s' failed in theme '%s' with %p.", icon, theme_name, cache);
}
/* we didn't find the icon in the theme or in the inherited directories
cache = efreet_cache_icon_fallback_find(tmp);
value = efreet_icon_fallback_lookup_path(cache);
- if (!value) INF("lookup for `%s` failed in fallback too with %p.", icon, cache);
+ if (!value) INF("lookup for '%s' failed in fallback too with %p.", icon, cache);
}
#ifdef SLOPPY_SPEC
if (!section)
{
- INF("Invalid file (%s) (missing section)", file);
+ INF("Invalid file '%s' (missing section)", file);
goto error;
}
else
{
/* invalid file... */
- INF("Invalid file (%s) (missing = from key=value pair)", file);
+ INF("Invalid file '%s' (missing = from key=value pair)", file);
goto error;
}
}
/* make sure we've got a <Menu> to start with */
if (xml->tag != efreet_tag_menu)
{
- WRN("Efreet_menu: Menu file didn't start with <Menu> tag.");
+ WRN("Menu file didn't start with <Menu> tag: '%s'", path);
efreet_xml_del(xml);
return NULL;
}
}
else
{
- WRN("Unknown XML tag: %s", child->tag);
+ WRN("Unknown XML tag '%s' in file '%s/%s'", child->tag, internal->file.path, internal->file.name);
return 0;
}
}
/* not allowed to have two Name settings in a menu */
if (parent->name.internal)
{
- INF("efreet_menu_handle_name() setting second name into menu");
+ INF("efreet_menu_handle_name() setting second name into menu: '%s/%s'", parent->file.path, parent->file.name);
return 0;
}
/* ignore the name if it is empty */
if (!parent->file.path)
{
- INF("efreet_menu_handle_merge_file() missing menu path ...");
+ INF("efreet_menu_handle_merge_file() missing menu path ... '%s'", parent->file.name);
return 0;
}
if (!merge_xml)
{
INF("efreet_menu_merge() failed to read in the "
- "merge file (%s)", path);
+ "merge file '%s'", path);
return 0;
}
else
{
INF("efreet_menu_handle_move() unknown tag found "
- "in Move (%s)", child->tag);
+ "in Move '%s' in file '%s/%s'", child->tag,
+ parent->file.path, parent->file.name);
return 0;
}
}
if (parent->current_move)
{
INF("efreet_menu_handle_old() saw second <Old> "
- "before seeing <New>");
+ "before seeing <New> in file '%s/%s'",
+ parent->file.path, parent->file.name);
return 0;
}
if (!parent->current_move)
{
- INF("efreet_menu_handle_new() saw New before seeing Old");
+ INF("efreet_menu_handle_new() saw New before seeing Old in '%s/%s'",
+ parent->file.path, parent->file.name);
return 0;
}
else
{
INF("efreet_menu_handle_move() unknown tag found "
- "in Layout (%s)", child->tag);
+ "in Layout '%s' in file '%s/%s'", child->tag,
+ parent->file.path, parent->file.name);
return 0;
}
}
else
{
INF("efreet_menu_handle_move() unknown tag found in "
- "DefaultLayout (%s)", child->tag);
+ "DefaultLayout '%s' in file '%s/%s'", child->tag,
+ parent->file.path, parent->file.name);
return 0;
}
}
if (!xml->text)
{
INF("efreet_menu_handle_layout_menuname() The Menuname tag in "
- "layout needs a filename.");
+ "layout needs a filename in file '%s/%s'",
+ parent->file.path, parent->file.name);
return 0;
}
if (!xml->text)
{
INF("efreet_menu_handle_layout_filename() The Filename tag in "
- "layout needs a filename.");
+ "layout needs a filename in file '%s/%s'",
+ parent->file.path, parent->file.name);
return 0;
}
if (!attr)
{
INF("efreet_menu_handle_layout_merge() The Merge tag in layout "
- "needs a type attribute.");
+ "needs a type attribute in file '%s/%s'",
+ parent->file.path, parent->file.name);
return 0;
}
if (strcmp(attr, "files") && strcmp(attr, "menus") && strcmp(attr, "all"))
{
INF("efreet_menu_handle_layout_merge() The type attribute for "
- "the Merge tag contains an unknown value (%s).", attr);
+ "the Merge tag contains an unknown value '%s' in file '%s/%s'",
+ attr, parent->file.path, parent->file.name);
return 0;
}
}
else
{
- INF("efreet_menu_handle_filter_op() unknown tag in filter (%s)", child->tag);
+ INF("efreet_menu_handle_filter_op() unknown tag in filter '%s'",
+ child->tag);
return 0;
}
}
{
if (!internal->file.path)
{
- INF("efreet_menu_handle_app_dir() missing menu path ...");
+ INF("efreet_menu_handle_app_dir() missing menu path ... '%s'", internal->file.name);
return NULL;
}
snprintf(path, sizeof(path), "%s/%s", internal->file.path, suffix);
trash_dir = efreet_trash_dir_get(uri->path);
if (!trash_dir)
{
- ERR("EFREET TRASH ERROR: No trash directory.");
+ ERR("No trash directory for file '%s'", uri->path);
return 0;
}
snprintf(dest, sizeof(dest), "%s/files/%s", trash_dir, fname);
if (!ecore_file_recursive_rm(uri->path))
{
- ERR("EFREET TRASH ERROR: Can't delete file.");
+ ERR("Can't delete file '%s'", uri->path);
eina_stringshare_del(trash_dir);
return 0;
}
}
else
{
- ERR("EFREET TRASH ERROR: Can't move file to trash.");
+ ERR("Can't move file to trash '%s'", uri->path);
eina_stringshare_del(trash_dir);
return 0;
}
}
else
{
- ERR("EFREET TRASH ERROR: Can't create trash info file.");
+ ERR("Can't create trash info file '%s'", dest);
return 0;
}
return xml;
efreet_error:
- ERR("could not parse xml file");
+ ERR("could not parse xml file '%s'", file);
if (data != MAP_FAILED) munmap(data, size);
if (fd != -1) close(fd);
if (xml) efreet_xml_del(xml);