diff options
author | Stefan Weil <sw@weilnetz.de> | 2013-04-18 22:21:05 +0200 |
---|---|---|
committer | Stefan Hajnoczi <stefanha@redhat.com> | 2013-04-19 11:44:16 +0200 |
commit | 6ae7d660a089502ec5f5cea133e5fd93fd82f3a8 (patch) | |
tree | 5377c3b71a2764e4d67bdfda00169246f403b87e | |
parent | 40508bb424971d9f39f3fb3b455a1765aa7799ee (diff) |
block/ssh: Add missing gcc format attributes
Now gcc will check whether format string and variable arguments match.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
-rw-r--r-- | block/ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/ssh.c b/block/ssh.c index 8f78e2e4b9..b4e048c70f 100644 --- a/block/ssh.c +++ b/block/ssh.c @@ -109,7 +109,7 @@ static void ssh_state_free(BDRVSSHState *s) /* Wrappers around error_report which make sure to dump as much * information from libssh2 as possible. */ -static void +static void GCC_FMT_ATTR(2, 3) session_error_report(BDRVSSHState *s, const char *fs, ...) { va_list args; @@ -132,7 +132,7 @@ session_error_report(BDRVSSHState *s, const char *fs, ...) error_printf("\n"); } -static void +static void GCC_FMT_ATTR(2, 3) sftp_error_report(BDRVSSHState *s, const char *fs, ...) { va_list args; |