summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2001-12-10 05:40:12 +0000
committerobrien <obrien@FreeBSD.org>2001-12-10 05:40:12 +0000
commitcca4f7b2d999a916e664b1331f20c754d454eb95 (patch)
tree0a73a2e1b79e9b63a9598d6b4feb8ba28a2b2806 /sys/kern/kern_exec.c
parent626d81cb4914cb998a2dd52582537166f4e837ea (diff)
downloadFreeBSD-src-cca4f7b2d999a916e664b1331f20c754d454eb95.zip
FreeBSD-src-cca4f7b2d999a916e664b1331f20c754d454eb95.tar.gz
Repeat after me -- "Use of ANSI string concatenation can be bad."
In this case, C99's __func__ is properly defined as: static const char __func__[] = "function-name"; and GCC 3.1 will not allow it to be used in bogus string concatenation.
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 6095b62..41ff7d8 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -128,7 +128,7 @@ execve(td, uap)
mtx_lock(&Giant);
PROC_LOCK(p);
KASSERT((p->p_flag & P_INEXEC) == 0,
- (__FUNCTION__ "(): process already has P_INEXEC flag"));
+ ("%s(): process already has P_INEXEC flag", __func__));
p->p_flag |= P_INEXEC;
PROC_UNLOCK(p);
OpenPOWER on IntegriCloud