mirror of https://github.com/proxmox/mirror_qemu
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>master
parent
40508bb424
commit
6ae7d660a0
|
@ -109,7 +109,7 @@ static void ssh_state_free(BDRVSSHState *s)
|
||||||
/* Wrappers around error_report which make sure to dump as much
|
/* Wrappers around error_report which make sure to dump as much
|
||||||
* information from libssh2 as possible.
|
* information from libssh2 as possible.
|
||||||
*/
|
*/
|
||||||
static void
|
static void GCC_FMT_ATTR(2, 3)
|
||||||
session_error_report(BDRVSSHState *s, const char *fs, ...)
|
session_error_report(BDRVSSHState *s, const char *fs, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
@ -132,7 +132,7 @@ session_error_report(BDRVSSHState *s, const char *fs, ...)
|
||||||
error_printf("\n");
|
error_printf("\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void GCC_FMT_ATTR(2, 3)
|
||||||
sftp_error_report(BDRVSSHState *s, const char *fs, ...)
|
sftp_error_report(BDRVSSHState *s, const char *fs, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
Loading…
Reference in New Issue