mirror of
https://github.com/tmux/tmux.git
synced 2025-01-19 05:13:52 +00:00
Tweak format_replace logging.
This commit is contained in:
parent
95ab1aaaec
commit
6dffbc4849
3
format.c
3
format.c
@ -1256,6 +1256,7 @@ format_replace(struct format_tree *ft, const char *key, size_t keylen,
|
|||||||
|
|
||||||
/* Make a copy of the key. */
|
/* Make a copy of the key. */
|
||||||
copy = copy0 = xstrndup(key, keylen);
|
copy = copy0 = xstrndup(key, keylen);
|
||||||
|
log_debug("%s: format = '%s'", __func__, copy);
|
||||||
|
|
||||||
/* Process modifier list. */
|
/* Process modifier list. */
|
||||||
list = format_build_modifiers(ft, ©, &count);
|
list = format_build_modifiers(ft, ©, &count);
|
||||||
@ -1322,7 +1323,6 @@ format_replace(struct format_tree *ft, const char *key, size_t keylen,
|
|||||||
cmp = fm;
|
cmp = fm;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
log_debug("%s: remaining = '%s'", __func__, copy);
|
|
||||||
|
|
||||||
/* Is this a literal string? */
|
/* Is this a literal string? */
|
||||||
if (modifiers & FORMAT_LITERAL) {
|
if (modifiers & FORMAT_LITERAL) {
|
||||||
@ -1452,6 +1452,7 @@ done:
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Expand the buffer and copy in the value. */
|
/* Expand the buffer and copy in the value. */
|
||||||
|
log_debug("%s: '%s' -> '%s'", __func__, copy0, value);
|
||||||
valuelen = strlen(value);
|
valuelen = strlen(value);
|
||||||
while (*len - *off < valuelen + 1) {
|
while (*len - *off < valuelen + 1) {
|
||||||
*buf = xreallocarray(*buf, 2, *len);
|
*buf = xreallocarray(*buf, 2, *len);
|
||||||
|
Loading…
Reference in New Issue
Block a user