[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 6/8] block/ssh: Add missing gcc format attributes
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PATCH 6/8] block/ssh: Add missing gcc format attributes |
Date: |
Fri, 19 Apr 2013 13:33:59 +0200 |
From: Stefan Weil <address@hidden>
Now gcc will check whether format string and variable arguments match.
Signed-off-by: Stefan Weil <address@hidden>
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
block/ssh.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/ssh.c b/block/ssh.c
index 8f78e2e..b4e048c 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;
--
1.8.1.4
- [Qemu-devel] [PULL 0/8] Trivial patches for 13 to 19 April 2013, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 1/8] bswap: fix compiler warning, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 2/8] virtio.h: drop unused function prototypes, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 4/8] w64: Fix compiler warnings (wrong format specifier), Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 3/8] Remove unneeded type casts, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 6/8] block/ssh: Add missing gcc format attributes,
Stefan Hajnoczi <=
- [Qemu-devel] [PATCH 5/8] linux-user: change do_semop to return target errno when unsuccessful, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 8/8] m25p80: Remove bogus include of devices.h, Stefan Hajnoczi, 2013/04/19
- [Qemu-devel] [PATCH 7/8] ssh: Remove unnecessary use of strlen function., Stefan Hajnoczi, 2013/04/19