|
@@ -1069,8 +1069,9 @@ extern enum test_nonce2_result _test_nonce2(struct work *, uint32_t nonce, bool
|
|
|
#define test_nonce(work, nonce, checktarget) (_test_nonce2(work, nonce, checktarget) == TNR_GOOD)
|
|
#define test_nonce(work, nonce, checktarget) (_test_nonce2(work, nonce, checktarget) == TNR_GOOD)
|
|
|
#define test_nonce2(work, nonce) (_test_nonce2(work, nonce, true))
|
|
#define test_nonce2(work, nonce) (_test_nonce2(work, nonce, true))
|
|
|
bool submit_nonce(struct thr_info *thr, struct work *work, uint32_t nonce);
|
|
bool submit_nonce(struct thr_info *thr, struct work *work, uint32_t nonce);
|
|
|
-extern void tailsprintf(char *f, const char *fmt, ...);
|
|
|
|
|
-extern void wlogprint(const char *f, ...);
|
|
|
|
|
|
|
+extern void tailsprintf(char *f, const char *fmt, ...) FORMAT_SYNTAX_CHECK(printf, 2, 3);
|
|
|
|
|
+extern void wlog(const char *f, ...) FORMAT_SYNTAX_CHECK(printf, 1, 2);
|
|
|
|
|
+extern void wlogprint(const char *f, ...) FORMAT_SYNTAX_CHECK(printf, 1, 2);
|
|
|
extern int curses_int(const char *query);
|
|
extern int curses_int(const char *query);
|
|
|
extern char *curses_input(const char *query);
|
|
extern char *curses_input(const char *query);
|
|
|
extern void kill_work(void);
|
|
extern void kill_work(void);
|