diff options
author | Simon Ser <contact@emersion.fr> | 2023-02-28 16:36:42 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-04-14 18:34:54 +0200 |
commit | ea279f4df3d9b08e65d5d8e241a57b7470fbd202 (patch) | |
tree | e125ac0ea62cc3e778c6a0e4bcad75b5c0298ff8 /include | |
parent | 96cebb4fe65021660e467a2cda8c9c5c4c29b699 (diff) |
swaynag: add printf attribute to swaynag_log()
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/swaynag.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sway/swaynag.h b/include/sway/swaynag.h index 74d9ea18..03bd52c3 100644 --- a/include/sway/swaynag.h +++ b/include/sway/swaynag.h @@ -1,6 +1,7 @@ #ifndef _SWAY_SWAYNAG_H #define _SWAY_SWAYNAG_H #include <wayland-server-core.h> +#include "stringop.h" struct swaynag_instance { struct wl_client *client; @@ -21,7 +22,7 @@ bool swaynag_spawn(const char *swaynag_command, // Write a log message to swaynag->fd[1]. This will fail when swaynag->detailed // is false. void swaynag_log(const char *swaynag_command, struct swaynag_instance *swaynag, - const char *fmt, ...); + const char *fmt, ...) _SWAY_ATTRIB_PRINTF(3, 4); // If swaynag->detailed, close swaynag->fd[1] so swaynag displays void swaynag_show(struct swaynag_instance *swaynag); |