Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nlj3Z-0006Gv-DL for qemu-devel@nongnu.org; Sun, 28 Feb 2010 08:19:37 -0500 Received: from [199.232.76.173] (port=45674 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nlj3Y-0006GY-VI for qemu-devel@nongnu.org; Sun, 28 Feb 2010 08:19:37 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nlj3X-0002CW-Av for qemu-devel@nongnu.org; Sun, 28 Feb 2010 08:19:36 -0500 Received: from hall.aurel32.net ([88.191.82.174]:49906) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Nlj3W-0002CM-W7 for qemu-devel@nongnu.org; Sun, 28 Feb 2010 08:19:35 -0500 Date: Sun, 28 Feb 2010 14:19:24 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH][STABLE] Drop debug printfs from qemu_chr_parse_compat Message-ID: <20100228131924.GK10291@volta.aurel32.net> References: <4B50CAEA.6070900@web.de> <4B5428C5.4050309@redhat.com> <4B543618.9030602@web.de> <4B543C33.1070701@redhat.com> <4B5442B5.5070409@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: <4B5442B5.5070409@web.de> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jan Kiszka Cc: Anthony Liguori , Gerd Hoffmann , qemu-devel On Mon, Jan 18, 2010 at 12:15:01PM +0100, Jan Kiszka wrote: > Gerd Hoffmann wrote: > > On 01/18/10 11:21, Jan Kiszka wrote: > >> Gerd Hoffmann wrote: > >>> On 01/15/10 21:07, Jan Kiszka wrote: > >>>> The missing '@' broke 'udp::@:' parsing. > >>> > >>>> if (sscanf(p, "%64[^:]:%32[^@,]%n", host, port,&pos)< 2) { > >>>> host[0] = 0; > >>>> - if (sscanf(p, ":%32[^,]%n", port,&pos)< 1) { > >>>> + if (sscanf(p, ":%32[^@,]%n", port,&pos)< 1) { > >>> > >>> Indeed. > >>> > >>>> fprintf(stderr, "udp #1\n"); > >>> > >>> While you are at it, can you also zap this debug leftover? > >> > >> Looks like there are three of them in qemu_chr_parse_compat - kill > >> them all? > > > > Yes. > > > > thanks, > > Gerd > > Thanks, committed to HEAD and cherry-picked in stable-0.12. > Signed-off-by: Jan Kiszka > --- > > qemu-char.c | 3 --- > 1 files changed, 0 insertions(+), 3 deletions(-) > > diff --git a/qemu-char.c b/qemu-char.c > index a8a92f5..ef7823f 100644 > --- a/qemu-char.c > +++ b/qemu-char.c > @@ -2315,7 +2315,6 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename) > if (sscanf(p, "%64[^:]:%32[^@,]%n", host, port, &pos) < 2) { > host[0] = 0; > if (sscanf(p, ":%32[^@,]%n", port, &pos) < 1) { > - fprintf(stderr, "udp #1\n"); > goto fail; > } > } > @@ -2326,7 +2325,6 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename) > if (sscanf(p, "%64[^:]:%32[^,]%n", host, port, &pos) < 2) { > host[0] = 0; > if (sscanf(p, ":%32[^,]%n", port, &pos) < 1) { > - fprintf(stderr, "udp #2\n"); > goto fail; > } > } > @@ -2354,7 +2352,6 @@ QemuOpts *qemu_chr_parse_compat(const char *label, const char *filename) > } > > fail: > - fprintf(stderr, "%s: fail on \"%s\"\n", __FUNCTION__, filename); > qemu_opts_del(opts); > return NULL; > } > -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net