forked from enlightenment/terminology
Add debug messages
This commit is contained in:
parent
c84f4f8d92
commit
adb2d84042
|
@ -548,7 +548,6 @@ options_behavior(Evas_Object *opbox, Evas_Object *term)
|
||||||
elm_slider_indicator_format_function_set(o,
|
elm_slider_indicator_format_function_set(o,
|
||||||
sback_indicator_units_format,
|
sback_indicator_units_format,
|
||||||
(void(*)(char*))eina_stringshare_del);
|
(void(*)(char*))eina_stringshare_del);
|
||||||
elm_slider_min_max_set(o, 0, 10000);
|
|
||||||
/* http://graphics.stanford.edu/~seander/bithacks.html#IntegerLogFloat */
|
/* http://graphics.stanford.edu/~seander/bithacks.html#IntegerLogFloat */
|
||||||
union {
|
union {
|
||||||
float v;
|
float v;
|
||||||
|
|
|
@ -60,7 +60,10 @@ _alloc_new(int size, unsigned char gen)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// out of slots for new blocks - no null blocks
|
// out of slots for new blocks - no null blocks
|
||||||
if (firstnull < 0) return NULL;
|
if (firstnull < 0) {
|
||||||
|
ERR("Cannot find new null blocks");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// so allocate a new block
|
// so allocate a new block
|
||||||
size = MEM_BLOCK_PAGES * MEM_PAGE_SIZE;
|
size = MEM_BLOCK_PAGES * MEM_PAGE_SIZE;
|
||||||
|
@ -69,7 +72,10 @@ _alloc_new(int size, unsigned char gen)
|
||||||
// get mmaped anonymous memory so when freed it goes away from the system
|
// get mmaped anonymous memory so when freed it goes away from the system
|
||||||
ptr = mmap(NULL, sz, PROT_READ | PROT_WRITE,
|
ptr = mmap(NULL, sz, PROT_READ | PROT_WRITE,
|
||||||
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
MAP_PRIVATE | MAP_ANONYMOUS, -1, 0);
|
||||||
if (ptr == MAP_FAILED) return NULL;
|
if (ptr == MAP_FAILED) {
|
||||||
|
ERR("Cannot allocate more memory with mmap MAP_ANONYMOUS");
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
// note - we SHOULD memset to 0, but we are assuming mmap anon give 0 pages
|
// note - we SHOULD memset to 0, but we are assuming mmap anon give 0 pages
|
||||||
//memset(ptr, 0, newsize);
|
//memset(ptr, 0, newsize);
|
||||||
|
|
Loading…
Reference in New Issue