summaryrefslogtreecommitdiff
path: root/serverboot/def_pager_setup.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1999-10-28 20:51:36 +0000
committerRoland McGrath <roland@gnu.org>1999-10-28 20:51:36 +0000
commitf2d5c57fd1204abeba9743159fd9aa9a0baa8069 (patch)
tree8a186e2ec82290568ae348a5a7c8f8fc1067ba08 /serverboot/def_pager_setup.c
parent54798bc817bdce192b874db8541bb73c6fb7a2ad (diff)
1999-10-28 Roland McGrath <roland@baalperazim.frob.com>
* file_io.h: Include <errno.h>. (FS_* macros): Define these to equivalent errno codes. * def_pager_setup.c (add_paging_file): Put strerror of result code in error messages. * bootstrap.c (parse_script): Likewise. * load.c (boot_script_exec_cmd): Include NAMEBUF in error messages, and use strerror to format result code. * panic.c (panic): Use program_invocation_name in message.
Diffstat (limited to 'serverboot/def_pager_setup.c')
-rw-r--r--serverboot/def_pager_setup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/serverboot/def_pager_setup.c b/serverboot/def_pager_setup.c
index 194f0355..8834a379 100644
--- a/serverboot/def_pager_setup.c
+++ b/serverboot/def_pager_setup.c
@@ -58,11 +58,12 @@ add_paging_file(master_device_port, file_name, linux_signature)
result = open_file_direct(pfile.f_dev, fdp, isa_file);
if (result)
- panic("Can't open paging file %s\n", file_name);
+ panic("Can't open paging file %s: %s\n",
+ file_name, strerror (result));
result = add_file_direct(fdp, &pfile);
if (result)
- panic("Can't read disk addresses: %d\n", result);
+ panic("Can't read disk addresses: %s\n", strerror (result));
close_file(&pfile);