qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/2] Trivial patches for 2 to 16 November 2012
@ 2012-11-16 14:08 Stefan Hajnoczi
  2012-11-16 14:08 ` [Qemu-devel] [PATCH 1/2] qemu-sockets: Fix parsing of the inet option 'to' Stefan Hajnoczi
  2012-11-16 14:08 ` [Qemu-devel] [PATCH 2/2] sd: Send debug printfery to stderr not stdout Stefan Hajnoczi
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2012-11-16 14:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: Stefan Hajnoczi

The following changes since commit 6801038bc52d61f81ac8a25fbe392f1bad982887:

  target-mips: fix wrong microMIPS opcode encoding (2012-11-15 14:48:16 +0100)

are available in the git repository at:

  git://github.com/stefanha/qemu.git trivial-patches

for you to fetch changes up to 5719bd7c5a5ced7833c3fe5de5dc278abaf498dc:

  sd: Send debug printfery to stderr not stdout (2012-11-16 14:53:19 +0100)

----------------------------------------------------------------
Anthony PERARD (1):
      qemu-sockets: Fix parsing of the inet option 'to'.

Peter Crosthwaite (1):
      sd: Send debug printfery to stderr not stdout

 hw/sd.c        | 4 ++--
 qemu-sockets.c | 5 +++--
 2 files changed, 5 insertions(+), 4 deletions(-)

-- 
1.8.0

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PATCH 1/2] qemu-sockets: Fix parsing of the inet option 'to'.
  2012-11-16 14:08 [Qemu-devel] [PATCH 0/2] Trivial patches for 2 to 16 November 2012 Stefan Hajnoczi
@ 2012-11-16 14:08 ` Stefan Hajnoczi
  2012-11-16 14:08 ` [Qemu-devel] [PATCH 2/2] sd: Send debug printfery to stderr not stdout Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2012-11-16 14:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: Anthony PERARD, Stefan Hajnoczi

From: Anthony PERARD <anthony.perard@citrix.com>

Having a qemu command line argument like "-vnc 127.0.0.1:0,to=99" is broken.
This have been break with commit 879e45c72da1569e07fbbc6a1aa2a708ea796044.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 qemu-sockets.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/qemu-sockets.c b/qemu-sockets.c
index abcd791..03ca98d 100644
--- a/qemu-sockets.c
+++ b/qemu-sockets.c
@@ -551,8 +551,9 @@ static InetSocketAddress *inet_parse(const char *str, Error **errp)
     optstr = str + pos;
     h = strstr(optstr, ",to=");
     if (h) {
-        if (1 != sscanf(str, "%d%n", &to, &pos) ||
-            (str[pos] != '\0' && str[pos] != ',')) {
+        h += 4;
+        if (sscanf(h, "%d%n", &to, &pos) != 1 ||
+            (h[pos] != '\0' && h[pos] != ',')) {
             error_setg(errp, "error parsing to= argument");
             goto fail;
         }
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PATCH 2/2] sd: Send debug printfery to stderr not stdout
  2012-11-16 14:08 [Qemu-devel] [PATCH 0/2] Trivial patches for 2 to 16 November 2012 Stefan Hajnoczi
  2012-11-16 14:08 ` [Qemu-devel] [PATCH 1/2] qemu-sockets: Fix parsing of the inet option 'to' Stefan Hajnoczi
@ 2012-11-16 14:08 ` Stefan Hajnoczi
  1 sibling, 0 replies; 3+ messages in thread
From: Stefan Hajnoczi @ 2012-11-16 14:08 UTC (permalink / raw)
  To: qemu-devel; +Cc: Peter Crosthwaite, Stefan Hajnoczi

From: Peter Crosthwaite <peter.crosthwaite@xilinx.com>

Some debug printfs for SD are coming up in stdout. Redirected them to stderr
instead.

Signed-off-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
---
 hw/sd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/hw/sd.c b/hw/sd.c
index 3c34d43..607edba 100644
--- a/hw/sd.c
+++ b/hw/sd.c
@@ -1439,8 +1439,8 @@ send_response:
         int i;
         DPRINTF("Response:");
         for (i = 0; i < rsplen; i++)
-            printf(" %02x", response[i]);
-        printf(" state %d\n", sd->state);
+            fprintf(stderr, " %02x", response[i]);
+        fprintf(stderr, " state %d\n", sd->state);
     } else {
         DPRINTF("No response %d\n", sd->state);
     }
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-11-16 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-11-16 14:08 [Qemu-devel] [PATCH 0/2] Trivial patches for 2 to 16 November 2012 Stefan Hajnoczi
2012-11-16 14:08 ` [Qemu-devel] [PATCH 1/2] qemu-sockets: Fix parsing of the inet option 'to' Stefan Hajnoczi
2012-11-16 14:08 ` [Qemu-devel] [PATCH 2/2] sd: Send debug printfery to stderr not stdout 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).