[lvm-devel] master - report: use proper string reference in _string_disp call for _cache_policy_disp fn

Peter Rajnoha prajnoha at fedoraproject.org
Tue Jan 12 15:14:52 UTC 2016


Gitweb:        http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=176b4aaebeb8b885d5df16172a5bc32481beda59
Commit:        176b4aaebeb8b885d5df16172a5bc32481beda59
Parent:        1a3ee6402ecf761554040a551f6c7f52b92f73ca
Author:        Peter Rajnoha <prajnoha at redhat.com>
AuthorDate:    Tue Jan 12 16:13:56 2016 +0100
Committer:     Peter Rajnoha <prajnoha at redhat.com>
CommitterDate: Tue Jan 12 16:14:23 2016 +0100

report: use proper string reference in _string_disp call for _cache_policy_disp fn

---
 lib/report/report.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lib/report/report.c b/lib/report/report.c
index 17aa5c0..9f44212 100644
--- a/lib/report/report.c
+++ b/lib/report/report.c
@@ -1429,7 +1429,7 @@ static int _cache_policy_disp(struct dm_report *rh, struct dm_pool *mem,
 		return 0;
 	}
 
-	return _string_disp(rh, mem, field, seg->policy_name, private);
+	return _string_disp(rh, mem, field, &seg->policy_name, private);
 }
 
 static int _modules_disp(struct dm_report *rh, struct dm_pool *mem,




More information about the lvm-devel mailing list