From: Jan Kiszka <jan.kiszka@siemens.com>
To: kvm-devel <kvm-devel@lists.sourceforge.net>
Subject: [PATCH] libkvm: dump all errors to stderr
Date: Wed, 30 Apr 2008 11:19:27 +0200 [thread overview]
Message-ID: <4818399F.8090705@siemens.com> (raw)
Minor cleanup I came across while reverting printf instrumentations.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
libkvm/libkvm-x86.c | 4 ++--
libkvm/libkvm.c | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
Index: b/libkvm/libkvm-x86.c
===================================================================
--- a/libkvm/libkvm-x86.c
+++ b/libkvm/libkvm-x86.c
@@ -117,7 +117,7 @@ static int kvm_init_tss(kvm_context_t kv
*/
r = kvm_set_tss_addr(kvm, 0xfffbd000);
if (r < 0) {
- printf("kvm_init_tss: unable to set tss addr\n");
+ fprintf(stderr, "kvm_init_tss: unable to set tss addr\n");
return r;
}
@@ -157,7 +157,7 @@ int kvm_create_pit(kvm_context_t kvm)
if (r >= 0)
kvm->pit_in_kernel = 1;
else {
- printf("Create kernel PIC irqchip failed\n");
+ fprintf(stderr, "Create kernel PIC irqchip failed\n");
return r;
}
}
Index: b/libkvm/libkvm.c
===================================================================
--- a/libkvm/libkvm.c
+++ b/libkvm/libkvm.c
@@ -368,7 +368,7 @@ void kvm_create_irqchip(kvm_context_t kv
if (r >= 0)
kvm->irqchip_in_kernel = 1;
else
- printf("Create kernel PIC irqchip failed\n");
+ fprintf(stderr, "Create kernel PIC irqchip failed\n");
}
}
#endif
@@ -877,7 +877,7 @@ again:
if (r == -1 && errno != EINTR && errno != EAGAIN) {
r = -errno;
post_kvm_run(kvm, vcpu);
- printf("kvm_run: %s\n", strerror(-r));
+ fprintf(stderr, "kvm_run: %s\n", strerror(-r));
return r;
}
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
next reply other threads:[~2008-04-30 9:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-30 9:19 Jan Kiszka [this message]
2008-04-30 20:01 ` [PATCH] libkvm: dump all errors to stderr Avi Kivity
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=4818399F.8090705@siemens.com \
--to=jan.kiszka@siemens.com \
--cc=kvm-devel@lists.sourceforge.net \
/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