summaryrefslogtreecommitdiff
path: root/bin/ksh/exec.c
diff options
context:
space:
mode:
authoranton <anton@cvs.openbsd.org>2018-03-15 16:51:30 +0000
committeranton <anton@cvs.openbsd.org>2018-03-15 16:51:30 +0000
commit4448b3fb909a1fbcd76ba467d09cca07b5335e52 (patch)
tree1f6d7338ff05a6f2081fd7d196053d84c5812fa0 /bin/ksh/exec.c
parent57a6d491335dbc3d0ac197975e564d55a18403f3 (diff)
Favor usage of __func__ in warning/error messages. Some of them referred to the
wrong function and fix the rest for consistency. Diff from Michael W. Bombardieri with some cosmetic cleanup applied. ok benno@ tb@
Diffstat (limited to 'bin/ksh/exec.c')
-rw-r--r--bin/ksh/exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ksh/exec.c b/bin/ksh/exec.c
index a53ba5fdfdb..1d274919fcb 100644
--- a/bin/ksh/exec.c
+++ b/bin/ksh/exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.c,v 1.72 2018/01/16 22:52:32 jca Exp $ */
+/* $OpenBSD: exec.c,v 1.73 2018/03/15 16:51:29 anton Exp $ */
/*
* execute command tree
@@ -727,7 +727,7 @@ shcomexec(char **wp)
tp = ktsearch(&builtins, *wp, hash(*wp));
if (tp == NULL)
- internal_errorf("shcomexec: %s", *wp);
+ internal_errorf("%s: %s", __func__, *wp);
return call_builtin(tp, wp);
}
@@ -1221,7 +1221,7 @@ herein(const char *content, int sub)
s->start = s->str = content;
source = s;
if (yylex(ONEWORD|HEREDOC) != LWORD)
- internal_errorf("herein: yylex");
+ internal_errorf("%s: yylex", __func__);
source = osource;
shf_puts(evalstr(yylval.cp, 0), shf);
} else
@@ -1446,5 +1446,5 @@ static void
dbteste_error(Test_env *te, int offset, const char *msg)
{
te->flags |= TEF_ERROR;
- internal_warningf("dbteste_error: %s (offset %d)", msg, offset);
+ internal_warningf("%s: %s (offset %d)", __func__, msg, offset);
}