summaryrefslogtreecommitdiff
path: root/usr.bin/tmux
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2019-03-20 07:30:06 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2019-03-20 07:30:06 +0000
commit1387deac486dcd8d3447e4c52897eaea558d0da3 (patch)
tree8733dbc0eb3092e378835b56a617d7ea6b2cd2ef /usr.bin/tmux
parent0e179ddb617dd35bfdb298ac9092b88fcbfc1aa3 (diff)
Include function name in logging.
Diffstat (limited to 'usr.bin/tmux')
-rw-r--r--usr.bin/tmux/format-draw.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/usr.bin/tmux/format-draw.c b/usr.bin/tmux/format-draw.c
index 2e97b2aeefc..6fff55951bf 100644
--- a/usr.bin/tmux/format-draw.c
+++ b/usr.bin/tmux/format-draw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: format-draw.c,v 1.5 2019/03/20 07:28:31 nicm Exp $ */
+/* $OpenBSD: format-draw.c,v 1.6 2019/03/20 07:30:05 nicm Exp $ */
/*
* Copyright (c) 2019 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -576,19 +576,21 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
/* This is a style. Work out where the end is and parse it. */
end = format_skip(cp + 2, "]");
if (end == NULL) {
- log_debug("no terminating ] at '%s'", cp + 2);
+ log_debug("%s: no terminating ] at '%s'", __func__,
+ cp + 2);
TAILQ_FOREACH_SAFE(fr, &frs, entry, fr1)
format_free_range(&frs, fr);
goto out;
}
tmp = xstrndup(cp + 2, end - (cp + 2));
if (style_parse(&sy, base, tmp) != 0) {
- log_debug("invalid style '%s'", tmp);
+ log_debug("%s: invalid style '%s'", __func__, tmp);
free(tmp);
cp = end + 1;
continue;
}
- log_debug("style '%s' -> '%s'", tmp, style_tostring(&sy));
+ log_debug("%s: style '%s' -> '%s'", __func__, tmp,
+ style_tostring(&sy));
free(tmp);
/* Check the list state. */
@@ -706,7 +708,7 @@ format_draw(struct screen_write_ctx *octx, const struct grid_cell *base,
log_debug("%s: width %s is %u", __func__, names[i], width[i]);
}
if (focus_start != -1 && focus_end != -1)
- log_debug("focus is %d-%d", focus_start, focus_end);
+ log_debug("%s: focus %d-%d", __func__, focus_start, focus_end);
TAILQ_FOREACH(fr, &frs, entry) {
log_debug("%s: range %d|%u is %s %u-%u", __func__, fr->type,
fr->argument, names[fr->index], fr->start, fr->end);