ok?
Index: util.c
===================================================================
RCS file: /cvs/src/sbin/iked/util.c,v
retrieving revision 1.35
diff -u -p -r1.35 util.c
--- util.c 13 Dec 2017 08:27:06 -0000 1.35
+++ util.c 22 Jun 2018 12:52:09 -0000
@@ -703,7 +703,7 @@ expand_string(char *label, size_t len, c
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, c
*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, c
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);
}