Hi,

I noticed that the output of eina_stringshare_dump contains rather
strange strings (it clearly doesn't match with what is in stringshare).
Attached is a patch that fixes the appropriate printf statement by using
the node struct to get the string.

cheers,
Peter
-- 
 .
..:
Index: src/lib/eina_share_common.c
===================================================================
--- src/lib/eina_share_common.c	(revision 74947)
+++ src/lib/eina_share_common.c	(working copy)
@@ -556,7 +556,7 @@ eina_iterator_array_check(const Eina_Rbtree *rbtre
    for (node = head->head; node; node = node->next)
      {
         printf("DDD: %5i %5i ", node->length, node->references);
-        printf("'%.*s'\n", node->length, ((char *)node) + sizeof(Eina_Share_Common_Node));
+        printf("'%.*s'\n", node->length, node->str);
         fdata->used += sizeof(Eina_Share_Common_Node);
         fdata->used += node->length;
         fdata->saved += (node->references - 1) * node->length;

Attachment: signature.asc
Description: Digital signature

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to