strncat(data, " ", 2);
value = _tbm_surface_internal_get_debug_data(surf, debug_old_data->key);
- if (value) {
+ if (value)
strncat(data, value, strlen(value) + 1);
- }
- else {
+ else
strncat(data, "none", strlen("none") + 1);
- }
}
}
TBM_DEBUG("%s\n", data);
if (!LIST_IS_EMPTY(&surface->debug_data_list)) {
LIST_FOR_EACH_ENTRY_SAFE(old_data, tmp, &surface->debug_data_list, item_link) {
- if (!strcmp(old_data->key ,key)) {
+ if (!strcmp(old_data->key, key)) {
if (value)
old_data->value = strdup(value);
else
if (!LIST_IS_EMPTY(&bufmgr->debug_key_list)) {
LIST_FOR_EACH_ENTRY_SAFE(old_data, tmp, &bufmgr->debug_key_list, item_link) {
- if (!strcmp(old_data->key ,key)) {
+ if (!strcmp(old_data->key, key))
return 1;
- }
}
}
if (!LIST_IS_EMPTY(&surface->debug_data_list)) {
LIST_FOR_EACH_ENTRY_SAFE(old_data, tmp, &surface->debug_data_list, item_link) {
- if (!strcmp(old_data->key, key)) {
+ if (!strcmp(old_data->key, key))
return old_data->value;
- }
}
}