From f0fd03b12213f88f7ecba186ef94a6311b810c83 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Thu, 24 Aug 2023 18:01:19 +0100 Subject: [PATCH] dmstats: use correct value for precise in _stats_create_file() --- libdm/dm-tools/dmsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdm/dm-tools/dmsetup.c b/libdm/dm-tools/dmsetup.c index ddee74a14..a9c01f826 100644 --- a/libdm/dm-tools/dmsetup.c +++ b/libdm/dm-tools/dmsetup.c @@ -5451,7 +5451,7 @@ static int _stats_create_file(CMD_ARGS) if (!strlen(program_id) && !_switches[FORCE_ARG]) program_id = DM_STATS_PROGRAM_ID; - precise = _int_args[PRECISE_ARG]; + precise = _switches[PRECISE_ARG]; group = !_switches[NOGROUP_ARG]; mode = _stats_get_filemapd_mode();