blob: c767804d1a2cf3a0df1c3bc98ba150c3cdae41e0 [file] [log] [blame]
Brad Bishop1a4b7ee2018-12-16 17:11:34 -08001From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2From: Benjamin Marzinski <bmarzins@redhat.com>
3Date: Mon, 7 May 2018 17:16:05 -0500
4Subject: [PATCH] libmultipath: print correct default for delay_*_checks
5
6These options default to "no", so they should display that when the
7config is printed.
8
9Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com>
10---
11 libmultipath/dict.c | 6 ++++--
12 1 file changed, 4 insertions(+), 2 deletions(-)
13
14diff --git a/libmultipath/dict.c b/libmultipath/dict.c
15index 4040611..3e7c5d6 100644
16--- a/libmultipath/dict.c
17+++ b/libmultipath/dict.c
18@@ -1115,7 +1115,8 @@ print_off_int_undef(char * buff, int len, long v)
19 }
20
21 declare_def_handler(delay_watch_checks, set_off_int_undef)
22-declare_def_snprint(delay_watch_checks, print_off_int_undef)
23+declare_def_snprint_defint(delay_watch_checks, print_off_int_undef,
24+ DEFAULT_DELAY_CHECKS)
25 declare_ovr_handler(delay_watch_checks, set_off_int_undef)
26 declare_ovr_snprint(delay_watch_checks, print_off_int_undef)
27 declare_hw_handler(delay_watch_checks, set_off_int_undef)
28@@ -1123,7 +1124,8 @@ declare_hw_snprint(delay_watch_checks, print_off_int_undef)
29 declare_mp_handler(delay_watch_checks, set_off_int_undef)
30 declare_mp_snprint(delay_watch_checks, print_off_int_undef)
31 declare_def_handler(delay_wait_checks, set_off_int_undef)
32-declare_def_snprint(delay_wait_checks, print_off_int_undef)
33+declare_def_snprint_defint(delay_wait_checks, print_off_int_undef,
34+ DEFAULT_DELAY_CHECKS)
35 declare_ovr_handler(delay_wait_checks, set_off_int_undef)
36 declare_ovr_snprint(delay_wait_checks, print_off_int_undef)
37 declare_hw_handler(delay_wait_checks, set_off_int_undef)
38--
392.7.4
40