aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Adam <thomas@xteddy.org>2019-03-13 20:02:36 +0000
committerThomas Adam <thomas@xteddy.org>2019-03-13 20:02:36 +0000
commit786f5e505eedca60e605275c189fc67474d0490c (patch)
tree9612a6471a52072de78b3961da9a8ae0457d86a0
parente6fd429d58038465f211d68b6eb0dd480eaf7d9c (diff)
parent6dffbc4849e856025bc491c761e6422b996535a0 (diff)
downloadrtmux-786f5e505eedca60e605275c189fc67474d0490c.tar.gz
rtmux-786f5e505eedca60e605275c189fc67474d0490c.tar.bz2
rtmux-786f5e505eedca60e605275c189fc67474d0490c.zip
Merge branch 'obsd-master'
-rw-r--r--format.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/format.c b/format.c
index b7d9bf83..da434020 100644
--- a/format.c
+++ b/format.c
@@ -1272,6 +1272,7 @@ format_replace(struct format_tree *ft, const char *key, size_t keylen,
/* Make a copy of the key. */
copy = copy0 = xstrndup(key, keylen);
+ log_debug("%s: format = '%s'", __func__, copy);
/* Process modifier list. */
list = format_build_modifiers(ft, &copy, &count);
@@ -1338,7 +1339,6 @@ format_replace(struct format_tree *ft, const char *key, size_t keylen,
cmp = fm;
}
}
- log_debug("%s: remaining = '%s'", __func__, copy);
/* Is this a literal string? */
if (modifiers & FORMAT_LITERAL) {
@@ -1468,6 +1468,7 @@ done:
}
/* Expand the buffer and copy in the value. */
+ log_debug("%s: '%s' -> '%s'", __func__, copy0, value);
valuelen = strlen(value);
while (*len - *off < valuelen + 1) {
*buf = xreallocarray(*buf, 2, *len);