From 63d46236592c9e3c2fef05fd60d1c39548e57a8d Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 18 Jul 2017 15:23:12 +0530 Subject: common-utils: Remove fop_enum_to_string, get_fop_int Implementation of these two functions becomes easier by using gf_fop_list[] array. So implemented that and removed usage of these functions. BUG: 1472250 Change-Id: I8a592913f9eeb02d965708bcf28a637588ed4988 Signed-off-by: Pranith Kumar K Reviewed-on: https://review.gluster.org/17812 Reviewed-by: Niels de Vos CentOS-regression: Gluster Build System Smoke: Gluster Build System --- xlators/debug/io-stats/src/io-stats.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/debug/io-stats/src') diff --git a/xlators/debug/io-stats/src/io-stats.c b/xlators/debug/io-stats/src/io-stats.c index 1a0d05ce413..6f638277a7f 100644 --- a/xlators/debug/io-stats/src/io-stats.c +++ b/xlators/debug/io-stats/src/io-stats.c @@ -1102,7 +1102,7 @@ _io_stats_write_latency_sample (xlator_t *this, ios_sample_t *sample, ios_log (this, logfp, "%0.6lf,%s,%s,%0.4lf,%s,%s,%s,%s,%s,%s", epoch_time, fop_enum_to_pri_string (sample->fop_type), - fop_enum_to_string (sample->fop_type), + gf_fop_string (sample->fop_type), sample->elapsed, xlator_name, instance_name, username, group_name, hostname, port); goto out; -- cgit