base: fix misleading ROM-connection error message

This commit is contained in:
Norman Feske 2015-03-04 17:32:20 +01:00
parent f9269f5cb1
commit 56ed7addbc
2 changed files with 4 additions and 4 deletions

View File

@ -29,13 +29,13 @@ namespace Genode {
private: private:
Rom_session_capability _create_session(const char *filename, const char *label) Rom_session_capability _create_session(const char *module_name, const char *label)
{ {
try { try {
return session("ram_quota=4K, filename=\"%s\", label=\"%s\"", return session("ram_quota=4K, filename=\"%s\", label=\"%s\"",
filename, label ? label: filename); } module_name, label ? label: module_name); }
catch (...) { catch (...) {
PERR("Could not open file \"%s\"", filename); PERR("Could not open ROM session for module \"%s\"", module_name);
throw Rom_connection_failed(); throw Rom_connection_failed();
} }
} }

View File

@ -80,7 +80,7 @@ compare_output_to {
[init -> test-ldso] Catch exceptions in program [init -> test-ldso] Catch exceptions in program
[init -> test-ldso] --------------------------- [init -> test-ldso] ---------------------------
[init -> test-ldso] exception in remote procedure call: [init -> test-ldso] exception in remote procedure call:
[init -> test-ldso] Could not open file "unknown_file" [init -> test-ldso] Could not open ROM session for module "unknown_file"
[init -> test-ldso] caught [init -> test-ldso] caught
[init -> test-ldso] exception in program: caught [init -> test-ldso] exception in program: caught
[init -> test-ldso] exception in shared lib: caught [init -> test-ldso] exception in shared lib: caught