diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2024-08-30 02:10:38 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2024-08-30 02:10:38 +0200 |
| commit | 270a1846fe530ae45ffa6b7ed4b68d7ad08ab8cb (patch) | |
| tree | 5bc60e2928da92879275527cd36b860c98ae557d | |
| parent | 97e82900fe6dce859669a0c8a2b2ca619d7df801 (diff) | |
config/output: Stringify render format when logging it
| -rw-r--r-- | sway/config/output.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sway/config/output.c b/sway/config/output.c index d72307f7..8e2528c8 100644 --- a/sway/config/output.c +++ b/sway/config/output.c @@ -10,6 +10,7 @@ #include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_output.h> #include <wlr/types/wlr_output_swapchain_manager.h> +#include <xf86drm.h> #include "sway/config.h" #include "sway/desktop/transaction.h" #include "sway/input/cursor.h" @@ -673,7 +674,9 @@ static void dump_output_state(struct wlr_output *wlr_output, struct wlr_output_s sway_log(SWAY_DEBUG, " enabled: %s", state->enabled ? "yes" : "no"); } if (state->committed & WLR_OUTPUT_STATE_RENDER_FORMAT) { - sway_log(SWAY_DEBUG, " render_format: %d", state->render_format); + char *format_name = drmGetFormatName(state->render_format); + sway_log(SWAY_DEBUG, " render_format: %s", format_name); + free(format_name); } if (state->committed & WLR_OUTPUT_STATE_MODE) { if (state->mode_type == WLR_OUTPUT_STATE_MODE_CUSTOM) { |
