Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 |
| 2 | From: Benjamin Marzinski <bmarzins@redhat.com> |
| 3 | Date: Mon, 7 May 2018 17:16:05 -0500 |
| 4 | Subject: [PATCH] libmultipath: print correct default for delay_*_checks |
| 5 | |
| 6 | These options default to "no", so they should display that when the |
| 7 | config is printed. |
| 8 | |
| 9 | Signed-off-by: Benjamin Marzinski <bmarzins@redhat.com> |
| 10 | --- |
| 11 | libmultipath/dict.c | 6 ++++-- |
| 12 | 1 file changed, 4 insertions(+), 2 deletions(-) |
| 13 | |
| 14 | diff --git a/libmultipath/dict.c b/libmultipath/dict.c |
| 15 | index 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 | -- |
| 39 | 2.7.4 |
| 40 | |