summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrob <rob@openbsd.org>2018-06-22 13:20:08 +0000
committerrob <rob@openbsd.org>2018-06-22 13:20:08 +0000
commitca955bc98eda967fa5c6115ddb6f5b8f1e97ea52 (patch)
tree5cba655a8fbf6ae2011b78537cd15932cd957757
parentRemove unused function. (diff)
downloadwireguard-openbsd-ca955bc98eda967fa5c6115ddb6f5b8f1e97ea52.tar.xz
wireguard-openbsd-ca955bc98eda967fa5c6115ddb6f5b8f1e97ea52.zip
Use __func__ in log_debug calls.
Ok gsoares@
-rw-r--r--sbin/iked/util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sbin/iked/util.c b/sbin/iked/util.c
index 6d1cd5cbc08..76d0061c9ed 100644
--- a/sbin/iked/util.c
+++ b/sbin/iked/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.35 2017/12/13 08:27:06 patrick Exp $ */
+/* $OpenBSD: util.c,v 1.36 2018/06/22 13:20:08 rob Exp $ */
/*
* Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org>
@@ -703,7 +703,7 @@ expand_string(char *label, size_t len, const char *srch, const char *repl)
char *p, *q;
if ((tmp = calloc(1, len)) == NULL) {
- log_debug("expand_string: calloc");
+ log_debug("%s: calloc", __func__);
return (-1);
}
p = q = label;
@@ -711,7 +711,7 @@ expand_string(char *label, size_t len, const char *srch, const char *repl)
*q = '\0';
if ((strlcat(tmp, p, len) >= len) ||
(strlcat(tmp, repl, len) >= len)) {
- log_debug("expand_string: string too long");
+ log_debug("%s: string too long", __func__);
free(tmp);
return (-1);
}
@@ -719,7 +719,7 @@ expand_string(char *label, size_t len, const char *srch, const char *repl)
p = q;
}
if (strlcat(tmp, p, len) >= len) {
- log_debug("expand_string: string too long");
+ log_debug("%s: string too long", __func__);
free(tmp);
return (-1);
}