]> git.ipfire.org Git - thirdparty/git.git/blobdiff - transport-helper.c
add missing "format" function attributes
[thirdparty/git.git] / transport-helper.c
index 522d79178e2cc4909a5df21fe483946fc3d1ad0e..111336aaf85081f8e1832c13accfe7fbc6989c48 100644 (file)
@@ -955,6 +955,7 @@ int transport_helper_init(struct transport *transport, const char *name)
 #define PBUFFERSIZE 8192
 
 /* Print bidirectional transfer loop debug message. */
+__attribute__((format (printf, 1, 2)))
 static void transfer_debug(const char *fmt, ...)
 {
        va_list args;
@@ -1040,7 +1041,7 @@ static int udt_do_read(struct unidirectional_transfer *t)
                return -1;
        } else if (bytes == 0) {
                transfer_debug("%s EOF (with %i bytes in buffer)",
-                       t->src_name, t->bufuse);
+                       t->src_name, (int)t->bufuse);
                t->state = SSTATE_FLUSHING;
        } else if (bytes > 0) {
                t->bufuse += bytes;