summaryrefslogtreecommitdiffstats
path: root/xlators/debug/error-gen/src/error-gen.c
diff options
context:
space:
mode:
authorVijay Bellur <vbellur@redhat.com>2018-08-13 13:06:20 -0700
committerAmar Tumballi <amarts@redhat.com>2018-08-14 05:12:27 +0000
commit32c8f70f49c0e287c53998e37867f00fa775377b (patch)
tree0f7b45b4ed2fca05bf2dd2868b7475a1f81c3f50 /xlators/debug/error-gen/src/error-gen.c
parente4015ece284ad3f5de8a1632984594480533e0a0 (diff)
error-gen, locks: Fix a typo in comments
s/coverty/coverity/ Change-Id: Iac7c13176162eace4247dd3236373aa76d906380 updates: bz#789278 Signed-off-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'xlators/debug/error-gen/src/error-gen.c')
-rw-r--r--xlators/debug/error-gen/src/error-gen.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/debug/error-gen/src/error-gen.c b/xlators/debug/error-gen/src/error-gen.c
index 6724fcf..f5180e5 100644
--- a/xlators/debug/error-gen/src/error-gen.c
+++ b/xlators/debug/error-gen/src/error-gen.c
@@ -195,7 +195,7 @@ generate_rand_no (int op_no)
int rand_no = 0;
if (op_no < GF_FOP_MAXVALUE)
- /* coverty[DC.WEAK_CRYPTO] */
+ /* coverity[DC.WEAK_CRYPTO] */
rand_no = rand () % error_no_list[op_no].error_no_count;
return rand_no;
}
@@ -284,7 +284,7 @@ error_gen (xlator_t *this, int op_no)
error_no_int = egp->error_no_int;
if ((count % egp->failure_iter_no) == 0) {
egp->op_count = 0;
- /* coverty[DC.WEAK_CRYPTO] */
+ /* coverity[DC.WEAK_CRYPTO] */
egp->failure_iter_no = 3
+ (rand () % GF_UNIVERSAL_ANSWER);
should_err = _gf_true;