close(proc->log.fd.fd);
}
-static void
+static void __attribute__((format (printf, 1, 0)))
netifd_udebug_vprintf(const char *format, va_list ap)
{
if (!udebug_buf_valid(&udb_log))
bool log_overflow;
};
-void netifd_udebug_printf(const char *format, ...);
+void netifd_udebug_printf(const char *format, ...)
+ __attribute__((format (printf, 1, 2)));
void netifd_udebug_config(struct udebug_ubus *ctx, struct blob_attr *data,
bool enabled);
-void netifd_log_message(int priority, const char *format, ...);
+void netifd_log_message(int priority, const char *format, ...)
+ __attribute__((format (printf, 2, 3)));
int netifd_start_process(const char **argv, char **env, struct netifd_process *proc);
void netifd_kill_process(struct netifd_process *proc);