aboutsummaryrefslogtreecommitdiffstats
path: root/unix/syslinux.c
diff options
context:
space:
mode:
Diffstat (limited to 'unix/syslinux.c')
-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);
}