From 1f688490e176aafbc3e3529d3025df7fcbce725b Mon Sep 17 00:00:00 2001 From: David Goldblatt Date: Wed, 5 May 2021 16:51:43 -0700 Subject: [PATCH] Stats: Fix a printing bug when hpa_dirty_mult = -1 Missed a layer of indirection. --- src/stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/stats.c b/src/stats.c index 69cb2d3e..ef173034 100644 --- a/src/stats.c +++ b/src/stats.c @@ -1476,8 +1476,9 @@ stats_general_print(emitter_t *emitter) { * representation. */ if (u32v == (uint32_t)-1) { + const char *neg1 = "-1"; emitter_kv(emitter, "hpa_dirty_mult", - "opt.hpa_dirty_mult", emitter_type_string, "-1"); + "opt.hpa_dirty_mult", emitter_type_string, &neg1); } else { char buf[FXP_BUF_SIZE]; fxp_print(u32v, buf);