summaryrefslogtreecommitdiffstats
path: root/printf.c
diff options
context:
space:
mode:
Diffstat (limited to 'printf.c')
-rw-r--r--printf.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/printf.c b/printf.c
index b13f43f..164717c 100644
--- a/printf.c
+++ b/printf.c
@@ -630,11 +630,8 @@ struct bfs_printf *parse_bfs_printf(const char *format, struct cmdline *cmdline)
break;
case 'F':
if (!cmdline->mtab) {
- cmdline->mtab = parse_bfs_mtab();
- if (!cmdline->mtab) {
- bfs_error(cmdline, "Couldn't parse the mount table: %m.\n");
- goto directive_error;
- }
+ bfs_error(cmdline, "Couldn't parse the mount table: %s.\n", strerror(cmdline->mtab_error));
+ goto directive_error;
}
directive->fn = bfs_printf_F;
directive->mtab = cmdline->mtab;