summaryrefslogtreecommitdiff
path: root/usr.bin/mandoc/roff.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@cvs.openbsd.org>2014-08-08 15:54:11 +0000
committerIngo Schwarze <schwarze@cvs.openbsd.org>2014-08-08 15:54:11 +0000
commitbdd0ab2f6a7e0e4cd01faf30e043e9bb941a0f79 (patch)
treef8f20700878b21a8e94d7c834b2f2ab38e0e3903 /usr.bin/mandoc/roff.c
parent8259cc2141e43dbc85a1c05df20d610572671596 (diff)
mention requests and macros in more messages
Diffstat (limited to 'usr.bin/mandoc/roff.c')
-rw-r--r--usr.bin/mandoc/roff.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.bin/mandoc/roff.c b/usr.bin/mandoc/roff.c
index 4ead0ac8a47..776e4c0e081 100644
--- a/usr.bin/mandoc/roff.c
+++ b/usr.bin/mandoc/roff.c
@@ -1,4 +1,4 @@
-/* $Id: roff.c,v 1.96 2014/08/08 15:48:43 schwarze Exp $ */
+/* $Id: roff.c,v 1.97 2014/08/08 15:54:10 schwarze Exp $ */
/*
* Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2010-2014 Ingo Schwarze <schwarze@openbsd.org>
@@ -1971,7 +1971,7 @@ roff_so(ROFF_ARGS)
char *name;
name = *bufp + pos;
- mandoc_vmsg(MANDOCERR_SO, r->parse, ln, ppos, ".so %s", name);
+ mandoc_vmsg(MANDOCERR_SO, r->parse, ln, ppos, "so %s", name);
/*
* Handle `so'. Be EXTREMELY careful, as we shouldn't be
@@ -2063,7 +2063,8 @@ roff_getname(struct roff *r, char **cpp, int ln, int pos)
cp++;
if ('\\' == *cp)
continue;
- mandoc_msg(MANDOCERR_NAMESC, r->parse, ln, pos, NULL);
+ mandoc_vmsg(MANDOCERR_NAMESC, r->parse, ln, pos,
+ "%.*s", (int)(cp - name + 1), name);
mandoc_escape((const char **)&cp, NULL, NULL);
break;
}