From 3027b6cd9e43aef1f90853c07a6b062205dcbbfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 28 Dec 2018 14:05:17 +0100 Subject: [PATCH] particle/progress-bar: add debug log --- particles/progress_bar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/particles/progress_bar.c b/particles/progress_bar.c index a6e8b59..0d77133 100644 --- a/particles/progress_bar.c +++ b/particles/progress_bar.c @@ -94,6 +94,8 @@ instantiate(const struct particle *particle, const struct tag_set *tags) long min = tag->min(tag); long max = tag->max(tag); + LOG_DBG("%s: value=%ld, min=%ld, max=%ld", tag->name(tag), value, min, max); + long fill_count = max == min ? 0 : p->width * value / (max - min); long empty_count = p->width - fill_count;