diff --git a/btpd/http.h b/btpd/http.h
index 8edaac4..9f03614 100644
--- a/btpd/http.h
+++ b/btpd/http.h
@@ -17,6 +17,7 @@ struct http_res {
     size_t length;
 };
 
+__attribute__((format (printf, 4, 5)))
 int http_get(struct http **ret,
     void (*cb)(struct http *, struct http_res *, void *),
     void *arg,