tbm_surface_internal_set_debug_data(tbm_surface, "id", debug_id);
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p\n", getpid(), wl_buffer, tbm_surface);
+ WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p", getpid(), wl_buffer, tbm_surface);
#endif
return;
tbm_surface_internal_set_debug_data(tbm_surface, "id", debug_id);
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p\n", getpid(), wl_buffer, tbm_surface);
+ WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p", getpid(), wl_buffer, tbm_surface);
#endif
return;
}
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("receive request_id:%s argc:%d [%s %s] options:'%s'\n", request_id, argc, argv[0], argv[1], temp);
+ WL_TBM_TRACE("receive request_id:%s argc:%d [%s %s] options:'%s'", request_id, argc, argv[0], argv[1], temp);
#endif
if (argc > 0) {
if (!tbm_client->bufmgr) {
tbm_client->bufmgr = tbm_bufmgr_init(-1);
if (!tbm_client->bufmgr) {
- WL_TBM_LOG("failed to get auth_info\n");
+ WL_TBM_LOG("failed to get auth_info");
wl_tbm_destroy(tbm_client->wl_tbm);
tbm_client->wl_tbm = NULL;
return;
display_wrapper = wl_proxy_create_wrapper(display);
if (!display_wrapper) {
- WL_TBM_LOG("Failed to create display_wrapper.\n");
+ WL_TBM_LOG("Failed to create display_wrapper.");
free(tbm_client);
return NULL;
}
wl_queue = wl_display_create_queue(display);
if (!wl_queue) {
- WL_TBM_LOG("Failed to create queue.\n");
+ WL_TBM_LOG("Failed to create queue.");
wl_proxy_wrapper_destroy(display_wrapper);
free(tbm_client);
return NULL;
wl_registry = wl_display_get_registry(display_wrapper);
wl_proxy_wrapper_destroy(display_wrapper);
if (!wl_registry) {
- WL_TBM_LOG("Failed to get registry\n");
+ WL_TBM_LOG("Failed to get registry");
wl_event_queue_destroy(wl_queue);
free(tbm_client);
wl_registry_add_listener(wl_registry, ®istry_listener, tbm_client);
if (wl_display_roundtrip_queue(display, wl_queue) < 0) {
- WL_TBM_LOG("Failed to wl_display_roundtrip_queuey\n");
+ WL_TBM_LOG("Failed to wl_display_roundtrip_queue");
wl_registry_destroy(wl_registry);
wl_event_queue_destroy(wl_queue);
/* check wl_tbm */
if (!tbm_client->wl_tbm) {
- WL_TBM_LOG("failed to create wl_tbm\n");
+ WL_TBM_LOG("failed to create wl_tbm");
wayland_tbm_client_deinit(tbm_client);
return NULL;
}
return buffer->wl_buffer;
if (tbm_surface_get_info(surface, &info) != TBM_SURFACE_ERROR_NONE) {
- WL_TBM_LOG("Failed to create buffer from surface\n");
+ WL_TBM_LOG("Failed to create buffer from surface");
return NULL;
}
if (info.num_planes > 3) {
- WL_TBM_LOG("invalid num_planes(%d)\n", info.num_planes);
+ WL_TBM_LOG("invalid num_planes(%d)", info.num_planes);
return NULL;
}
num_buf = tbm_surface_internal_get_num_bos(surface);
if (num_buf == 0) {
- WL_TBM_LOG("surface doesn't have any bo.\n");
+ WL_TBM_LOG("surface doesn't have any bo.");
return NULL;
}
for (i = 0; i < num_buf; i++) {
tbm_bo bo = tbm_surface_internal_get_bo(surface, i);
if (bo == NULL) {
- WL_TBM_LOG("Failed to get bo from surface\n");
+ WL_TBM_LOG("Failed to get bo from surface");
goto err;
}
if (is_fd == -1 ||
(is_fd == 1 && bufs[i] < 0) ||
(is_fd == 0 && bufs[i] <= 0)) {
- WL_TBM_LOG("Failed to export(is_fd:%d, bufs:%d)\n", is_fd, bufs[i]);
+ WL_TBM_LOG("Failed to export(is_fd:%d, bufs:%d)", is_fd, bufs[i]);
goto err;
}
}
wl_array_release(&plane_size);
if (!wl_buffer) {
- WL_TBM_LOG("Failed to create wl_buffer\n");
+ WL_TBM_LOG("Failed to create wl_buffer");
goto err;
}
tbm_surface_internal_set_debug_data(surface, "id", debug_id);
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d wl_buffer:%p tbm_surface:%p\n", getpid(),
+ WL_TBM_TRACE(" pid:%d wl_buffer:%p tbm_surface:%p", getpid(),
wl_buffer, surface);
#endif
// TODO: valid check if the buffer is from this tbm_client???
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d wl_buffer:%p\n", getpid(), wl_buffer);
+ WL_TBM_TRACE(" pid:%d wl_buffer:%p", getpid(), wl_buffer);
#endif
buffer = _wayland_tbm_client_find_tbm_buffer_wl_buffer(tbm_client, wl_buffer);
wl_list_for_each_safe(buffer, tmp, &queue_info->attach_bufs, link) {
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p\n", getpid(), buffer->wl_buffer, buffer->tbm_surface);
+ WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p", getpid(), buffer->wl_buffer, buffer->tbm_surface);
#endif
if (buffer->wl_buffer) {
wl_tbm_queue_detach_buffer(queue_info->wl_tbm_queue, buffer->wl_buffer);
if (!buffer->reuse) {
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("destroy the wl_buffer:%p\n", buffer->wl_buffer);
+ WL_TBM_TRACE("destroy the wl_buffer:%p", buffer->wl_buffer);
#endif
wl_buffer_destroy(buffer->wl_buffer);
buffer->wl_buffer = NULL;
wl_list_for_each_safe(buffer, tmp, &queue_info->attach_bufs, link) {
if (buffer->allocated) continue;
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p\n", getpid(), buffer->wl_buffer, buffer->tbm_surface);
+ WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p", getpid(), buffer->wl_buffer, buffer->tbm_surface);
#endif
if (buffer->wl_buffer) {
wl_tbm_queue_detach_buffer(queue_info->wl_tbm_queue, buffer->wl_buffer);
if (!buffer->reuse) {
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("destroy the wl_buffer:%p\n", buffer->wl_buffer);
+ WL_TBM_TRACE("destroy the wl_buffer:%p", buffer->wl_buffer);
#endif
wl_buffer_destroy(buffer->wl_buffer);
buffer->wl_buffer = NULL;
_wayland_tbm_client_surface_queue_flush(struct wayland_tbm_surface_queue *queue_info)
{
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("pid:%d\n", getpid());
+ WL_TBM_TRACE("pid:%d", getpid());
#endif
_wayland_tbm_client_queue_destroy_unused_attach_bufs(queue_info);
buffer->allocated = 1;
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d wl_buffer:%p tbm_surface:%p ACTIVE\n", getpid(), buffer->wl_buffer, buffer->tbm_surface);
+ WL_TBM_TRACE(" pid:%d wl_buffer:%p tbm_surface:%p ACTIVE", getpid(), buffer->wl_buffer, buffer->tbm_surface);
#endif
break;
}
queue_info->flag);
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d tbm_surface:%p DEACTIVE\n", getpid(), surface);
+ WL_TBM_TRACE(" pid:%d tbm_surface:%p DEACTIVE", getpid(), surface);
#endif
}
tbm_surface_h surface)
{
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d tbm_surface:%p\n", getpid(), surface);
+ WL_TBM_TRACE(" pid:%d tbm_surface:%p", getpid(), surface);
#endif
struct wayland_tbm_surface_queue *queue_info =
(struct wayland_tbm_surface_queue *)data;
}
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p\n",
+ WL_TBM_TRACE("pid:%d wl_buffer:%p tbm_surface:%p",
getpid(), buffer->wl_buffer, buffer->tbm_surface);
#endif
struct wayland_tbm_surface_queue *queue_info =
(struct wayland_tbm_surface_queue *)data;
- WL_TBM_LOG("active queue\n");
+ WL_TBM_LOG("active queue");
if (queue_info->is_active) {
- WL_TBM_C_LOG("warning: queue_info is already activated\n");
+ WL_TBM_C_LOG("warning: queue_info is already activated");
return;
}
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d\n", getpid());
+ WL_TBM_TRACE(" pid:%d", getpid());
#endif
if (need_flush) {
(struct wayland_tbm_surface_queue *)data;
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d\n", getpid());
+ WL_TBM_TRACE(" pid:%d", getpid());
#endif
- WL_TBM_LOG("deactive queue\n");
+ WL_TBM_LOG("deactive queue");
if (!queue_info->is_active) {
- WL_TBM_C_LOG("warning: queue_info is already deactivated\n");
+ WL_TBM_C_LOG("warning: queue_info is already deactivated");
return;
}
(struct wayland_tbm_surface_queue *)data;
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("pid:%d\n", getpid());
+ WL_TBM_TRACE("pid:%d", getpid());
#endif
- WL_TBM_LOG("flush queue\n");
+ WL_TBM_LOG("flush queue");
if (queue_info->is_active && queue_info->active_flush) {
- WL_TBM_C_LOG("warning: Cannot flush the tbm_surface_queueu. The queue is activate.\n");
+ WL_TBM_C_LOG("warning: Cannot flush the tbm_surface_queueu. The queue is activate.");
return;
}
(struct wayland_tbm_surface_queue *)data;
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d\n", getpid());
+ WL_TBM_TRACE(" pid:%d", getpid());
#endif
/* remove the attach_bufs int the queue_info */
int format;
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d\n", getpid());
+ WL_TBM_TRACE(" pid:%d", getpid());
#endif
width = tbm_surface_queue_get_width(surface_queue);
if (wl_display_roundtrip_queue(tbm_client->dpy, tbm_client->event_queue) == -1) {
int dpy_err;
- WL_TBM_LOG_E("failed to wl_display_roundtrip_queue errno:%d\n", errno);
+ WL_TBM_LOG_E("failed to wl_display_roundtrip_queue errno:%d", errno);
dpy_err = wl_display_get_error(tbm_client->dpy);
if (dpy_err == EPROTO) {
const struct wl_interface *interface;
uint32_t proxy_id, code;
code = wl_display_get_protocol_error(tbm_client->dpy, &interface, &proxy_id);
- WL_TBM_LOG_E("protocol error interface:%s code:%d proxy_id:%d \n",
+ WL_TBM_LOG_E("protocol error interface:%s code:%d proxy_id:%d",
interface->name, code, proxy_id);
}
}
struct wl_tbm_queue *queue;
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d\n", getpid());
+ WL_TBM_TRACE(" pid:%d", getpid());
#endif
WL_TBM_RETURN_VAL_IF_FAIL(tbm_client != NULL, NULL);
_handle_tbm_surface_queue_trace_notify, queue_info);
#ifdef DEBUG_TRACE
- WL_TBM_C_LOG("INFO cur(%dx%d fmt:0x%x num:%d) new(%dx%d fmt:0x%x num:%d)\n",
+ WL_TBM_C_LOG("INFO cur(%dx%d fmt:0x%x num:%d) new(%dx%d fmt:0x%x num:%d)",
queue_info->width, queue_info->height,
queue_info->format, queue_info->num_bufs,
width, height, format, queue_size);
#define WL_TBM_C_LOG(fmt, ...) {\
if (bDlog) {\
- LOGE("[WL_TBM_C] " fmt, ##__VA_ARGS__);\
+ LOGE(fmt, ##__VA_ARGS__);\
} \
else {\
- fprintf(stderr, "[WL_TBM_C(%d):%s] " fmt, getpid(), __func__, ##__VA_ARGS__);\
+ fprintf(stderr, "[WL_TBM_C(%d):%s] " fmt"\n", getpid(), __func__, ##__VA_ARGS__);\
} \
}
#define WL_TBM_S_LOG(fmt, ...) {\
if (bDlog) {\
- LOGI("[WL_TBM_S] " fmt, ##__VA_ARGS__);\
+ LOGI(fmt, ##__VA_ARGS__);\
} \
else{\
- fprintf(stderr, "[WL_TBM_S(%d):%s] " fmt, getpid(), __func__, ##__VA_ARGS__);\
+ fprintf(stderr, "[WL_TBM_S(%d):%s] " fmt"\n", getpid(), __func__, ##__VA_ARGS__);\
} \
}
#define WL_TBM_LOG(fmt, ...) {\
if (bDlog) {\
- LOGI("[WL_TBM] " fmt, ##__VA_ARGS__);\
+ LOGI(fmt, ##__VA_ARGS__);\
} \
else {\
- fprintf(stderr, "[WL_TBM(%d)] " fmt, getpid(), ##__VA_ARGS__);\
+ fprintf(stderr, "[WL_TBM(%d)] " fmt"\n", getpid(), ##__VA_ARGS__);\
} \
}
/* temp log */
#define WL_TBM_LOG_E(fmt, ...) {\
if (bDlog) {\
- LOGE("[WL_TBM] " fmt, ##__VA_ARGS__);\
+ LOGE(fmt, ##__VA_ARGS__);\
} \
else {\
- fprintf(stderr, "[WL_TBM(%d)] " fmt, getpid(), ##__VA_ARGS__);\
+ fprintf(stderr, "[WL_TBM(%d)] " fmt"\n", getpid(), ##__VA_ARGS__);\
} \
}
#else
-#define WL_TBM_C_LOG(fmt, ...) fprintf(stderr, "[WL_TBM_C(%d):%s] " fmt, getpid(), __func__, ##__VA_ARGS__)
-#define WL_TBM_S_LOG(fmt, ...) fprintf(stderr, "[WL_TBM_S(%d):%s] " fmt, getpid(), __func__, ##__VA_ARGS__)
-#define WL_TBM_LOG(fmt, ...) fprintf(stderr, "[WL_TBM(%d)] " fmt, getpid(), ##__VA_ARGS__)
-#define WL_TBM_LOG_E(fmt, ...) fprintf(stderr, "[WL_TBM_E(%d)] " fmt, getpid(), ##__VA_ARGS__)
+#define WL_TBM_C_LOG(fmt, ...) fprintf(stderr, "[WL_TBM_C(%d):%s] " fmt"\n", getpid(), __func__, ##__VA_ARGS__)
+#define WL_TBM_S_LOG(fmt, ...) fprintf(stderr, "[WL_TBM_S(%d):%s] " fmt"\n", getpid(), __func__, ##__VA_ARGS__)
+#define WL_TBM_LOG(fmt, ...) fprintf(stderr, "[WL_TBM(%d)] " fmt"\n", getpid(), ##__VA_ARGS__)
+#define WL_TBM_LOG_E(fmt, ...) fprintf(stderr, "[WL_TBM_E(%d)] " fmt"\n", getpid(), ##__VA_ARGS__)
#endif /* ENABLE_DLOG */
/* check condition */
#define WL_TBM_RETURN_IF_FAIL(cond) {\
if (!(cond)) {\
- WL_TBM_LOG("'%s' failed.\n", #cond);\
+ WL_TBM_LOG("'%s' failed.", #cond);\
return;\
} \
}
#define WL_TBM_RETURN_VAL_IF_FAIL(cond, val) {\
if (!(cond)) {\
- WL_TBM_LOG("'%s' failed.\n", #cond);\
+ WL_TBM_LOG("'%s' failed.", #cond);\
return val;\
} \
}
#define WL_TBM_GOTO_IF_FAIL(cond, dst) {\
if (!(cond)) {\
- WL_TBM_LOG("'%s' failed.\n", #cond);\
+ WL_TBM_LOG("'%s' failed.", #cond);\
goto dst;\
} \
}
wl_list_for_each_safe(pos, tmp, &ud->wayland_tbm_buffer_list,
link_ref) {
- WL_TBM_S_LOG("Error: wl_buffer(%p) still alive tbm_surface:%p\n",
+ WL_TBM_S_LOG("Error: wl_buffer(%p) still alive tbm_surface:%p",
pos->wl_buffer, pos->surface);
pos->surface = NULL;
if (!tbm_surface_internal_add_user_data(tbm_surface,
(unsigned long)&key_ud,
_wayland_tbm_server_free_user_data)) {
- WL_TBM_S_LOG("Fail to create user data for surface %p\n",
+ WL_TBM_S_LOG("Fail to create user data for surface %p",
tbm_surface);
goto out;
}
if (!tbm_surface_internal_set_user_data(tbm_surface,
(unsigned long)&key_ud,
(void*)ud)) {
- WL_TBM_S_LOG("Fail to set user data for surface %p\n",
+ WL_TBM_S_LOG("Fail to set user data for surface %p",
tbm_surface);
goto out;
}
pid_t pid;
wl_client_get_credentials(client, &pid, NULL, NULL);
- WL_TBM_TRACE(" pid:%d wl_buffer destoroy.\n", pid);
+ WL_TBM_TRACE(" pid:%d wl_buffer destoroy.", pid);
#endif
wl_resource_destroy(wl_buffer);
if (tbm_buffer->client)
wl_client_get_credentials(tbm_buffer->client, &pid, NULL, NULL);
- WL_TBM_TRACE(" pid:%d tbm_surface:%p\n", pid, tbm_buffer->surface);
+ WL_TBM_TRACE(" pid:%d tbm_surface:%p", pid, tbm_buffer->surface);
#endif
if (tbm_buffer->destroy_cb)
tbm_buffer = calloc(1, sizeof(*tbm_buffer));
if (tbm_buffer == NULL) {
- WL_TBM_S_LOG("Error. fail to allocate a tbm_buffer.\n");
+ WL_TBM_S_LOG("Error. fail to allocate a tbm_buffer.");
return NULL;
}
wl_list_init(&tbm_buffer->link_ref);
/* create a wl_buffer resource */
tbm_buffer->wl_buffer = wl_resource_create(wl_client, &wl_buffer_interface, 1, id);
if (!tbm_buffer->wl_buffer) {
- WL_TBM_S_LOG("Error. fail to create wl_buffer resource.\n");
+ WL_TBM_S_LOG("Error. fail to create wl_buffer resource.");
free(tbm_buffer);
return NULL;
}
pid_t pid;
wl_client_get_credentials(client, &pid, NULL, NULL);
- WL_TBM_TRACE("pid:%d tbm_surface:%p\n", pid, surface);
+ WL_TBM_TRACE("pid:%d tbm_surface:%p", pid, surface);
#endif
}
pid_t pid;
wl_client_get_credentials(client, &pid, NULL, NULL);
- WL_TBM_TRACE("pid:%d tbm_surface:%p\n", pid, surface);
+ WL_TBM_TRACE("pid:%d tbm_surface:%p", pid, surface);
#endif
done:
pid_t pid;
wl_client_get_credentials(client, &pid, NULL, NULL);
- WL_TBM_TRACE("wl_tbm_queue destory. pid:%d\n", pid);
+ WL_TBM_TRACE("wl_tbm_queue destory. pid:%d", pid);
#endif
wl_resource_destroy(wl_tbm_queue);
pid_t pid;
wl_client_get_credentials(client, &pid, NULL, NULL);
- WL_TBM_TRACE("detach buffer. pid:%d\n", pid);
+ WL_TBM_TRACE("detach buffer. pid:%d", pid);
#endif
if (tbm_buffer->detach_cb)
pid_t pid;
wl_client_get_credentials(client, &pid, NULL, NULL);
- WL_TBM_TRACE("dequeue buffer. pid:%d\n", pid);
+ WL_TBM_TRACE("dequeue buffer. pid:%d", pid);
#endif
cqueue = wl_resource_get_user_data(wl_tbm_queue);
if (cqueue) {
#ifdef DEBUG_TRACE
- WL_TBM_TRACE("destory queue. pid:%d\n", cqueue->pid);
+ WL_TBM_TRACE("destory queue. pid:%d", cqueue->pid);
#endif
wl_list_remove(&cqueue->link);
free(cqueue);
wl_list_insert(&tbm_srv->cqueue_list, &cqueue->link);
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d \n", pid);
+ WL_TBM_TRACE(" pid:%d ", pid);
#endif
}
wl_client_get_credentials(wl_resource_get_client(wl_tbm), &pid, NULL,
NULL);
- WL_TBM_S_LOG("wl_tbm_monitor destroy. client=%d\n", pid);
+ WL_TBM_S_LOG("wl_tbm_monitor destroy. client=%d", pid);
#endif
/* remove the client resources to the list */
pid_t pid;
wl_client_get_credentials(client, &pid, NULL, NULL);
- WL_TBM_S_LOG("wl_tbm bind. client=%d\n", pid);
+ WL_TBM_S_LOG("wl_tbm bind. client=%d", pid);
#endif
}
int *p;
if (tbm_surface_get_info(surface, &info) != TBM_SURFACE_ERROR_NONE) {
- WL_TBM_S_LOG("Failed to create buffer from surface\n");
+ WL_TBM_S_LOG("Failed to create buffer from surface");
return 0;
}
if (info.num_planes > 3) {
- WL_TBM_S_LOG("invalid num_planes(%d)\n", info.num_planes);
+ WL_TBM_S_LOG("invalid num_planes(%d)", info.num_planes);
return 0;
}
num_buf = tbm_surface_internal_get_num_bos(surface);
if (num_buf == 0) {
- WL_TBM_S_LOG("surface doesn't have any bo.\n");
+ WL_TBM_S_LOG("surface doesn't have any bo.");
return 0;
}
if (is_fd == -1 ||
(is_fd == 1 && bufs[i] < 0) ||
(is_fd == 0 && bufs[i] <= 0)) {
- WL_TBM_S_LOG("Failed to export(is_fd:%d, bufs:%d)\n", is_fd, bufs[i]);
+ WL_TBM_S_LOG("Failed to export(is_fd:%d, bufs:%d)", is_fd, bufs[i]);
goto err;
}
}
if (!_wayland_tbm_server_export_surface(wl_tbm,
tbm_buffer->wl_buffer,
surface)) {
- WL_TBM_S_LOG("Failed to send the surface to the wl_tbm_queue\n");
+ WL_TBM_S_LOG("Failed to send the surface to the wl_tbm_queue");
wl_resource_destroy(tbm_buffer->wl_buffer);
tbm_surface_internal_unref(surface);
return NULL;
WL_TBM_RETURN_IF_FAIL(cqueue->wl_tbm_queue != NULL);
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d\n", cqueue->pid);
+ WL_TBM_TRACE(" pid:%d", cqueue->pid);
#endif
- WL_TBM_LOG("send active queue pid:%d\n", cqueue->pid);
+ WL_TBM_LOG("send active queue pid:%d", cqueue->pid);
wl_tbm_queue_send_active(cqueue->wl_tbm_queue, usage, queue_size, need_flush);
WL_TBM_RETURN_IF_FAIL(cqueue->wl_tbm_queue != NULL);
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d\n", cqueue->pid);
+ WL_TBM_TRACE(" pid:%d", cqueue->pid);
#endif
WL_TBM_LOG("send deactive queue pid:%d", cqueue->pid);
WL_TBM_RETURN_VAL_IF_FAIL(cqueue->wl_tbm_queue != NULL, 0);
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d\n", cqueue->pid);
+ WL_TBM_TRACE(" pid:%d", cqueue->pid);
#endif
cqueue->dequeue_cb = dequeue_cb;
cqueue->dequeue_cb_data = user_data;
if (!_wayland_tbm_server_export_surface(cqueue->wl_tbm,
tbm_buffer->wl_buffer,
surface)) {
- WL_TBM_S_LOG("Failed to send the surface to the wl_tbm_queue\n");
+ WL_TBM_S_LOG("Failed to send the surface to the wl_tbm_queue");
wl_resource_destroy(tbm_buffer->wl_buffer);
tbm_surface_internal_unref(surface);
return NULL;
if (!_wayland_tbm_server_export_surface(cqueue->wl_tbm,
tbm_buffer->wl_buffer,
surface)) {
- WL_TBM_S_LOG("Failed to send the surface to the wl_tbm_queue\n");
+ WL_TBM_S_LOG("Failed to send the surface to the wl_tbm_queue");
wl_resource_destroy(tbm_buffer->wl_buffer);
tbm_surface_internal_unref(surface);
return NULL;
WL_TBM_RETURN_IF_FAIL(cqueue->wl_tbm_queue != NULL);
#ifdef DEBUG_TRACE
- WL_TBM_TRACE(" pid:%d\n", cqueue->pid);
+ WL_TBM_TRACE(" pid:%d", cqueue->pid);
#endif
WL_TBM_LOG("send flush queue pid:%d", cqueue->pid);
env = getenv("WL_TBM_DLOG");
if (env) {
bDlog = atoi(env);
- WL_TBM_LOG("WL_TBM_DLOG=%s\n", env);
+ WL_TBM_LOG("WL_TBM_DLOG=%s", env);
} else {
bDlog = 1;
}