From 2a45ad01e211d0b36056c21d5211be46195b273d Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Mon, 13 Nov 2017 18:04:46 -0500 Subject: color: Implement %m for cfprintf() --- printf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'printf.c') diff --git a/printf.c b/printf.c index 9157ccb..2d48cb6 100644 --- a/printf.c +++ b/printf.c @@ -618,7 +618,7 @@ struct bfs_printf *parse_bfs_printf(const char *format, struct cmdline *cmdline) if (!cmdline->mtab) { cmdline->mtab = parse_bfs_mtab(); if (!cmdline->mtab) { - cfprintf(cmdline->cerr, "%{er}error: Couldn't parse the mount table: %s.%{rs}\n\n", strerror(errno)); + cfprintf(cmdline->cerr, "%{er}error: Couldn't parse the mount table: %m%{rs}\n"); goto directive_error; } } -- cgit v1.2.3