diff options
author | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-04-17 16:26:26 +0200 |
---|---|---|
committer | Mikkel Oscar Lyderik <mikkeloscar@gmail.com> | 2016-04-17 16:51:33 +0200 |
commit | f39034a55f6303c4729a72722a7e1c34d93936af (patch) | |
tree | ee675dd29adbc678307fafe1a22163d8b2cf4c4e /sway/container.c | |
parent | 2a0836e3bd86efc3e6eabc039aace6839684ef63 (diff) |
Use correct format string for x86_64 and i686
Fix #587
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sway/container.c b/sway/container.c index a4b2d1c2..95a46632 100644 --- a/sway/container.c +++ b/sway/container.c @@ -80,13 +80,13 @@ swayc_t *new_output(wlc_handle handle) { swayc_t *op = root_container.children->items[i]; const char *op_name = op->name; if (op_name && name && strcmp(op_name, name) == 0) { - sway_log(L_DEBUG, "restoring output %lu:%s", handle, op_name); + sway_log(L_DEBUG, "restoring output %" PRIuPTR ":%s", handle, op_name); return op; } } } - sway_log(L_DEBUG, "New output %lu:%s", handle, name); + sway_log(L_DEBUG, "New output %" PRIuPTR ":%s", handle, name); struct output_config *oc = NULL, *all = NULL; int i; @@ -254,7 +254,7 @@ swayc_t *new_view(swayc_t *sibling, wlc_handle handle) { } const char *title = wlc_view_get_title(handle); swayc_t *view = new_swayc(C_VIEW); - sway_log(L_DEBUG, "Adding new view %lu:%s to container %p %d", + sway_log(L_DEBUG, "Adding new view %" PRIuPTR ":%s to container %p %d", handle, title, sibling, sibling ? sibling->type : 0); // Setup values view->handle = handle; @@ -292,7 +292,7 @@ swayc_t *new_floating_view(wlc_handle handle) { } const char *title = wlc_view_get_title(handle); swayc_t *view = new_swayc(C_VIEW); - sway_log(L_DEBUG, "Adding new view %lu:%x:%s as a floating view", + sway_log(L_DEBUG, "Adding new view %" PRIuPTR ":%x:%s as a floating view", handle, wlc_view_get_type(handle), title); // Setup values view->handle = handle; @@ -354,7 +354,7 @@ swayc_t *destroy_output(swayc_t *output) { arrange_windows(root_container.children->items[p], -1, -1); } } - sway_log(L_DEBUG, "OUTPUT: Destroying output '%lu'", output->handle); + sway_log(L_DEBUG, "OUTPUT: Destroying output '%" PRIuPTR "'", output->handle); free_swayc(output); return &root_container; } |