summaryrefslogtreecommitdiff
path: root/sway/debug_log.c
diff options
context:
space:
mode:
authorMikkel Oscar Lyderik <[email protected]>2016-04-17 16:26:26 +0200
committerMikkel Oscar Lyderik <[email protected]>2016-04-17 16:51:33 +0200
commitf39034a55f6303c4729a72722a7e1c34d93936af (patch)
treeee675dd29adbc678307fafe1a22163d8b2cf4c4e /sway/debug_log.c
parent2a0836e3bd86efc3e6eabc039aace6839684ef63 (diff)
Use correct format string for x86_64 and i686
Fix #587
Diffstat (limited to 'sway/debug_log.c')
-rw-r--r--sway/debug_log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/debug_log.c b/sway/debug_log.c
index 6fd6422f..761dca6c 100644
--- a/sway/debug_log.c
+++ b/sway/debug_log.c
@@ -26,7 +26,7 @@ static void container_log(const swayc_t *c, int depth) {
fprintf(stderr,"|(%p)",c);
fprintf(stderr,"(p:%-8p)",c->parent);
fprintf(stderr,"(f:%-8p)",c->focused);
- fprintf(stderr,"(h:%2ld)",c->handle);
+ fprintf(stderr,"(h:%2" PRIuPTR ")",c->handle);
fprintf(stderr,"Type:%-4s|",
c->type == C_ROOT ? "root" :
c->type == C_OUTPUT ? "op" :