qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] verbose error when /dev/kqemu can't be open
@ 2007-02-06 15:08 Robert Millan
  0 siblings, 0 replies; only message in thread
From: Robert Millan @ 2007-02-06 15:08 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 369 bytes --]


Please can you apply this tiny patch to make /dev/kqemu open failures more
verbose?

It'll help the user distinguish between ENOENT, EPERM and ENXIO, since they
are all common causes of open failure.

-- 
Robert Millan

My spam trap is honeypot@aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.

[-- Attachment #2: dev_error.diff --]
[-- Type: text/x-diff, Size: 508 bytes --]

--- qemu-0.8.2/kqemu.c~	2006-07-22 19:23:34.000000000 +0200
+++ qemu-0.8.2/kqemu.c	2007-02-06 16:04:58.000000000 +0100
@@ -174,7 +174,7 @@
     kqemu_fd = open(KQEMU_DEVICE, O_RDWR);
 #endif
     if (kqemu_fd == KQEMU_INVALID_FD) {
-        fprintf(stderr, "Could not open '%s' - QEMU acceleration layer not activated\n", KQEMU_DEVICE);
+        fprintf(stderr, "Could not open '%s' - QEMU acceleration layer not activated: %s\n", KQEMU_DEVICE, strerror(errno));
         return -1;
     }
     version = 0;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-06 15:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-06 15:08 [Qemu-devel] [PATCH] verbose error when /dev/kqemu can't be open Robert Millan

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).