diff --git a/src/picom.c b/src/picom.c index 48e7913..4caa1d4 100644 --- a/src/picom.c +++ b/src/picom.c @@ -101,7 +101,7 @@ const char *const BACKEND_STRS[] = {[BKEND_XRENDER] = "xrender", session_t *ps_g = NULL; void set_root_flags(session_t *ps, uint64_t flags) { - log_debug("Setting root flags: %lu", flags); + log_debug("Setting root flags: %" PRIu64, flags); ps->root_flags |= flags; ps->pending_updates = true; } diff --git a/src/win.c b/src/win.c index 7c82ab5..7ff73c6 100644 --- a/src/win.c +++ b/src/win.c @@ -4,6 +4,7 @@ #include #include +#include #include #include #include @@ -2515,7 +2516,7 @@ win_is_fullscreen_xcb(xcb_connection_t *c, const struct atom *a, const xcb_windo /// Set flags on a window. Some sanity checks are performed void win_set_flags(struct managed_win *w, uint64_t flags) { - log_debug("Set flags %lu to window %#010x (%s)", flags, w->base.id, w->name); + log_debug("Set flags %" PRIu64 " to window %#010x (%s)", flags, w->base.id, w->name); if (unlikely(w->state == WSTATE_DESTROYING)) { log_error("Flags set on a destroyed window %#010x (%s)", w->base.id, w->name); return; @@ -2526,7 +2527,8 @@ void win_set_flags(struct managed_win *w, uint64_t flags) { /// Clear flags on a window. Some sanity checks are performed void win_clear_flags(struct managed_win *w, uint64_t flags) { - log_debug("Clear flags %lu from window %#010x (%s)", flags, w->base.id, w->name); + log_debug("Clear flags %" PRIu64 " from window %#010x (%s)", flags, w->base.id, + w->name); if (unlikely(w->state == WSTATE_DESTROYING)) { log_warn("Flags cleared on a destroyed window %#010x (%s)", w->base.id, w->name);