qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: mdroth <mdroth@linux.vnet.ibm.com>
To: Michael Tokarev <mjt@tls.msk.ru>
Cc: qemu-stable <qemu-stable@nongnu.org>,
	qemu-devel@nongnu.org, "Serge E. Hallyn" <serge@hallyn.com>
Subject: Re: [Qemu-devel] [PATCH] fix wrong output with 'info chardev' for tcp socket.
Date: Tue, 2 Apr 2013 10:26:56 -0500	[thread overview]
Message-ID: <20130402152656.GB11564@vm> (raw)
In-Reply-To: <20130221222827.GI10005@vm>

On Thu, Feb 21, 2013 at 04:28:27PM -0600, mdroth wrote:
> On Fri, Feb 22, 2013 at 12:29:44AM +0400, Michael Tokarev wrote:
> > 22.02.2013 00:20, Serge E. Hallyn wrote:
> > > The snprintf format isn't taking into account the new 'left' and
> > > 'right' variables (for ipv6 []) when placing the ':', which should
> > > go immediately before the port.
> > 
> > This fixes actual isse (also found by Serge), where `info chardev'
> > prints `tcp:127.0.0.14444,server,nowait' for a monitor running on port
> > 4444.
> > 
> > This is definitely a stable material (CCed).

Fix made it upstream through a separate patch:

ec9f828341cb5e9cc3ad0bdbbd6989884daf823a

> > 
> > Reviewed-by: Michael Tokarev <mjt@tls.msk.ru>
> 
> Reviewed-by: Michael Roth <mdroth@linux.vnet.ibm.com>
> 
> > 
> > Thanks!
> > 
> > /mjt
> > 
> > > Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
> > > ---
> > >  qemu-char.c | 2 +-
> > >  1 file changed, 1 insertion(+), 1 deletion(-)
> > > 
> > > diff --git a/qemu-char.c b/qemu-char.c
> > > index e4b0f53..3e152e1 100644
> > > --- a/qemu-char.c
> > > +++ b/qemu-char.c
> > > @@ -2482,7 +2482,7 @@ static CharDriverState *qemu_chr_open_socket_fd(int fd, bool do_nodelay,
> > >          s->do_nodelay = do_nodelay;
> > >          getnameinfo((struct sockaddr *) &ss, ss_len, host, sizeof(host),
> > >                      serv, sizeof(serv), NI_NUMERICHOST | NI_NUMERICSERV);
> > > -        snprintf(chr->filename, 256, "%s:%s:%s%s%s%s",
> > > +        snprintf(chr->filename, 256, "%s:%s%s%s:%s%s",
> > >                   is_telnet ? "telnet" : "tcp",
> > >                   left, host, right, serv,
> > >                   is_listen ? ",server" : "");
> > > 
> > 
> > 

           reply	other threads:[~2013-04-02 15:30 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <20130221222827.GI10005@vm>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130402152656.GB11564@vm \
    --to=mdroth@linux.vnet.ibm.com \
    --cc=mjt@tls.msk.ru \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=serge@hallyn.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).