[lvm-devel] 2018-06-01-stable - filter: make pointers distinguishable
Marian Csontos
mcsontos at sourceware.org
Fri Jun 22 13:14:12 UTC 2018
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=24aee732a58a8d45acf90cbdf1d0cf30fe603a09
Commit: 24aee732a58a8d45acf90cbdf1d0cf30fe603a09
Parent: ba6ed5c90c5a191f63c14ee9795f298eba689932
Author: Marian Csontos <mcsontos at redhat.com>
AuthorDate: Fri Jun 22 15:07:07 2018 +0200
Committer: Marian Csontos <mcsontos at redhat.com>
CommitterDate: Fri Jun 22 15:13:24 2018 +0200
filter: make pointers distinguishable
This ammends commit: 4afb5971b93a with suggestions to improve debugging
from Nir Soffer.
---
lib/filters/filter-persistent.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/filters/filter-persistent.c b/lib/filters/filter-persistent.c
index bbfd858..1d24af8 100644
--- a/lib/filters/filter-persistent.c
+++ b/lib/filters/filter-persistent.c
@@ -50,8 +50,8 @@ struct pfilter {
* by default. The old code for it should be removed.
*/
-static int _good_device;
-static int _bad_device;
+static char* _good_device = "good";
+static char* _bad_device = "bad";
/*
* The hash table holds one of these two states
More information about the lvm-devel
mailing list