Skip to contentSkip to conversation

2018-06-01-stable - filter: make pointers distinguishable

PATCH Marian Csontos 1 participant 1 message Jun 22, 2018

lore
Share & tools
lore
#0 lore raw
Gitweb:        https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=24aee732a58a8d45acf90cbdf1d0cf30fe603a09
Commit:        24aee732a58a8d45acf90cbdf1d0cf30fe603a09
Parent:        ba6ed5c90c5a191f63c14ee9795f298eba689932
Author:        Marian Csontos <[email protected]>
AuthorDate:    Fri Jun 22 15:07:07 2018 +0200
Committer:     Marian Csontos <[email protected]>
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(-)
lib/filters/filter-persistent.c +2 -2
index bbfd858..1d24af8 100644
@@ -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