aboutsummaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authorhpa <hpa>2004-12-15 21:56:04 +0000
committerhpa <hpa>2004-12-15 21:56:04 +0000
commit9ebb55c50870cc136da18715cc1a53db5c3f8431 (patch)
treec40b7b7419f0bac205b117041d56bc960fd2aff5 /unix
parent77cfe4bb9b00690ab3b87a105eed5c430f97bb18 (diff)
downloadsyslinux-elf-9ebb55c50870cc136da18715cc1a53db5c3f8431.tar.gz
syslinux-elf-9ebb55c50870cc136da18715cc1a53db5c3f8431.tar.xz
syslinux-elf-9ebb55c50870cc136da18715cc1a53db5c3f8431.zip
Adjust the interface to syslxmod.c so the DOS installer doesn't need
printf().
Diffstat (limited to 'unix')
-rw-r--r--unix/syslinux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/syslinux.c b/unix/syslinux.c
index e5041cda..362fcc35 100644
--- a/unix/syslinux.c
+++ b/unix/syslinux.c
@@ -177,6 +177,7 @@ int main(int argc, char *argv[])
libfat_sector_t s, *secp, sectors[65]; /* 65 is maximum possible */
int32_t ldlinux_cluster;
int nsectors;
+ const char *errmsg;
(void)argc; /* Unused */
@@ -239,7 +240,8 @@ int main(int argc, char *argv[])
/*
* Check to see that what we got was indeed an MS-DOS boot sector/superblock
*/
- if(!syslinux_check_bootsect(sectbuf,device)) {
+ if(!syslinux_check_bootsect(sectbuf,&errmsg)) {
+ fprintf(stderr, "%s: %s\n", device, errmsg);
exit(1);
}