* [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes
@ 2013-04-18 20:21 Stefan Weil
2013-04-18 20:42 ` [Qemu-devel] block/ssh: Compilation fails on Debian squeeze Stefan Weil
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Stefan Weil @ 2013-04-18 20:21 UTC (permalink / raw)
To: qemu-trivial; +Cc: Stefan Weil, qemu-devel, Richard W.M. Jones
Now gcc will check whether format string and variable arguments match.
Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
Please note: I could only run limited tests with the new code
because ssh.c is currently not compiled in my w32/w64 environment.
Regards,
Stefan W.
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.7.10.4
^ permalink raw reply related [flat|nested] 6+ messages in thread
* [Qemu-devel] block/ssh: Compilation fails on Debian squeeze
2013-04-18 20:21 [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes Stefan Weil
@ 2013-04-18 20:42 ` Stefan Weil
2013-04-18 21:08 ` Richard W.M. Jones
2013-04-18 21:07 ` [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes Richard W.M. Jones
2013-04-19 9:44 ` Stefan Hajnoczi
2 siblings, 1 reply; 6+ messages in thread
From: Stefan Weil @ 2013-04-18 20:42 UTC (permalink / raw)
To: Richard W.M. Jones; +Cc: qemu-devel
Am 18.04.2013 22:21, schrieb Stefan Weil:
> Now gcc will check whether format string and variable arguments match.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>
> Please note: I could only run limited tests with the new code
> because ssh.c is currently not compiled in my w32/w64 environment.
>
> Regards,
> Stefan W.
The test fails on current Debian (squeeze), not because of wrong
format specifiers, but because of an "old" libssh2-1-dev.
ssh.c calls libssh2_session_handshake which was added in 1.2.8,
see http://www.libssh2.org/libssh2_session_handshake.html.
Can we simplify the libssh2 check in configure and require
pkg-config, no compile check?
Regards,
Stefan W.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] block/ssh: Compilation fails on Debian squeeze
2013-04-18 20:42 ` [Qemu-devel] block/ssh: Compilation fails on Debian squeeze Stefan Weil
@ 2013-04-18 21:08 ` Richard W.M. Jones
2013-04-19 4:10 ` Stefan Weil
0 siblings, 1 reply; 6+ messages in thread
From: Richard W.M. Jones @ 2013-04-18 21:08 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-devel
On Thu, Apr 18, 2013 at 10:42:09PM +0200, Stefan Weil wrote:
> Am 18.04.2013 22:21, schrieb Stefan Weil:
> > Now gcc will check whether format string and variable arguments match.
> >
> > Signed-off-by: Stefan Weil <sw@weilnetz.de>
> > ---
> >
> > Please note: I could only run limited tests with the new code
> > because ssh.c is currently not compiled in my w32/w64 environment.
> >
> > Regards,
> > Stefan W.
>
> The test fails on current Debian (squeeze), not because of wrong
> format specifiers, but because of an "old" libssh2-1-dev.
>
> ssh.c calls libssh2_session_handshake which was added in 1.2.8,
> see http://www.libssh2.org/libssh2_session_handshake.html.
>
> Can we simplify the libssh2 check in configure and require
> pkg-config, no compile check?
Sounds fine to me. Did you mean you want me to provide a patch?
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine. Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] block/ssh: Compilation fails on Debian squeeze
2013-04-18 21:08 ` Richard W.M. Jones
@ 2013-04-19 4:10 ` Stefan Weil
0 siblings, 0 replies; 6+ messages in thread
From: Stefan Weil @ 2013-04-19 4:10 UTC (permalink / raw)
To: Richard W.M. Jones; +Cc: qemu-devel
Am 18.04.2013 23:08, schrieb Richard W.M. Jones:
> On Thu, Apr 18, 2013 at 10:42:09PM +0200, Stefan Weil wrote:
>> The test fails on current Debian (squeeze), not because of wrong
>> format specifiers, but because of an "old" libssh2-1-dev.
>>
>> ssh.c calls libssh2_session_handshake which was added in 1.2.8,
>> see http://www.libssh2.org/libssh2_session_handshake.html.
>>
>> Can we simplify the libssh2 check in configure and require
>> pkg-config, no compile check?
> Sounds fine to me. Did you mean you want me to provide a patch?
>
> Rich.
>
Yes, that would be good.
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes
2013-04-18 20:21 [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes Stefan Weil
2013-04-18 20:42 ` [Qemu-devel] block/ssh: Compilation fails on Debian squeeze Stefan Weil
@ 2013-04-18 21:07 ` Richard W.M. Jones
2013-04-19 9:44 ` Stefan Hajnoczi
2 siblings, 0 replies; 6+ messages in thread
From: Richard W.M. Jones @ 2013-04-18 21:07 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-trivial, qemu-devel
On Thu, Apr 18, 2013 at 10:21:05PM +0200, Stefan Weil wrote:
> Now gcc will check whether format string and variable arguments match.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
ACK, this looks fine to me.
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-top is 'top' for virtual machines. Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes
2013-04-18 20:21 [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes Stefan Weil
2013-04-18 20:42 ` [Qemu-devel] block/ssh: Compilation fails on Debian squeeze Stefan Weil
2013-04-18 21:07 ` [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes Richard W.M. Jones
@ 2013-04-19 9:44 ` Stefan Hajnoczi
2 siblings, 0 replies; 6+ messages in thread
From: Stefan Hajnoczi @ 2013-04-19 9:44 UTC (permalink / raw)
To: Stefan Weil; +Cc: qemu-trivial, qemu-devel, Richard W.M. Jones
On Thu, Apr 18, 2013 at 10:21:05PM +0200, Stefan Weil wrote:
> Now gcc will check whether format string and variable arguments match.
>
> Signed-off-by: Stefan Weil <sw@weilnetz.de>
> ---
>
> Please note: I could only run limited tests with the new code
> because ssh.c is currently not compiled in my w32/w64 environment.
>
> Regards,
> Stefan W.
>
> block/ssh.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
Thanks, applied to the trivial patches tree:
https://github.com/stefanha/qemu/commits/trivial-patches
Stefan
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2013-04-19 9:44 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18 20:21 [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes Stefan Weil
2013-04-18 20:42 ` [Qemu-devel] block/ssh: Compilation fails on Debian squeeze Stefan Weil
2013-04-18 21:08 ` Richard W.M. Jones
2013-04-19 4:10 ` Stefan Weil
2013-04-18 21:07 ` [Qemu-devel] [PATCH] block/ssh: Add missing gcc format attributes Richard W.M. Jones
2013-04-19 9:44 ` Stefan Hajnoczi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).