From: Jan Kiszka <jan.kiszka@web.de>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: Anthony Liguori <aliguori@us.ibm.com>,
qemu-devel <qemu-devel@nongnu.org>
Subject: [Qemu-devel] [PATCH][STABLE] Drop debug printfs from qemu_chr_parse_compat
Date: Mon, 18 Jan 2010 12:15:01 +0100 [thread overview]
Message-ID: <4B5442B5.5070409@web.de> (raw)
In-Reply-To: <4B543C33.1070701@redhat.com>
[-- Attachment #1: Type: text/plain, Size: 1946 bytes --]
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::<port>@:<port>' 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
>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
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;
}
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 257 bytes --]
next prev parent reply other threads:[~2010-01-18 11:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-01-15 20:07 [Qemu-devel] [PATCH][STABLE] Fix corner case in chardev udp: parameter Jan Kiszka
2010-01-18 9:24 ` Gerd Hoffmann
2010-01-18 10:21 ` Jan Kiszka
2010-01-18 10:47 ` Gerd Hoffmann
2010-01-18 11:15 ` Jan Kiszka [this message]
2010-01-18 11:25 ` [Qemu-devel] Re: [PATCH][STABLE] Drop debug printfs from qemu_chr_parse_compat Gerd Hoffmann
2010-02-28 13:19 ` [Qemu-devel] " Aurelien Jarno
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=4B5442B5.5070409@web.de \
--to=jan.kiszka@web.de \
--cc=aliguori@us.ibm.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).