From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: Gerd Hoffmann <kraxel@redhat.com>
Subject: [Qemu-devel] [PATCH 2/2] rom loader: also try filename as-is.
Date: Wed, 7 Oct 2009 13:37:07 +0200 [thread overview]
Message-ID: <1254915427-7375-2-git-send-email-kraxel@redhat.com> (raw)
In-Reply-To: <1254915427-7375-1-git-send-email-kraxel@redhat.com>
In case qemu_find_file fails try to open the file as-is.
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
hw/loader.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/hw/loader.c b/hw/loader.c
index 40112b9..4ce7c6a 100644
--- a/hw/loader.c
+++ b/hw/loader.c
@@ -559,8 +559,7 @@ int rom_add_file(const char *file,
rom->name = qemu_strdup(file);
rom->path = qemu_find_file(QEMU_FILE_TYPE_BIOS, rom->name);
if (rom->path == NULL) {
- fprintf(stderr, "Could not find option rom '%s'\n", rom->name);
- goto err;
+ rom->path = strdup(file);
}
fd = open(rom->path, O_RDONLY);
--
1.6.2.5
prev parent reply other threads:[~2009-10-07 11:37 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-10-07 11:37 [Qemu-devel] [PATCH 1/2] rom loader: fix sparc -kernel boot Gerd Hoffmann
2009-10-07 11:37 ` Gerd Hoffmann [this message]
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=1254915427-7375-2-git-send-email-kraxel@redhat.com \
--to=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).