summaryrefslogtreecommitdiff
path: root/mtools/syslinux.c
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 /mtools/syslinux.c
parent77cfe4bb9b00690ab3b87a105eed5c430f97bb18 (diff)
downloadsyslinux-9ebb55c50870cc136da18715cc1a53db5c3f8431.tar.gz
Adjust the interface to syslxmod.c so the DOS installer doesn't need
printf().
Diffstat (limited to 'mtools/syslinux.c')
-rw-r--r--mtools/syslinux.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mtools/syslinux.c b/mtools/syslinux.c
index d29108ed..004bca3b 100644
--- a/mtools/syslinux.c
+++ b/mtools/syslinux.c
@@ -136,6 +136,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 */
@@ -192,7 +193,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", program, errmsg);
exit(1);
}