Mark log functions as printf-like

This commit is contained in:
dmiller
2026-09-23 19:15:29 +00:00
parent 24229f2e65
commit 6b9e1aea01
5 changed files with 20 additions and 11 deletions
+3 -1
View File
@@ -284,7 +284,9 @@ public:
void setAF(int af);
void setStatusCallback(void (*callback)(const Stats *));
void setLogFunc(void (*log_func)(int lvl, const char *, ...));
typedef void (*log_func_t)(int lvl, const char *, ...)
__attribute__((format(printf, 2, 3)));
void setLogFunc(log_func_t log_func);
void setSource(const char *device, const struct sockaddr_storage *src, size_t srclen, bool spoof);
void setIpOptions(const u8 *opts, size_t optslen);
void setProxyChain(const nsock_proxychain proxy_chain);