summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2018-01-06 20:00:04 +0530
committerAtin Mukherjee <amukherj@redhat.com>2018-01-07 04:43:45 +0000
commitedf8224ab41c262098d18897337e9a809b480f12 (patch)
treee3f7e4691cbdd3a876d48e511ef603a2344b10f5 /libglusterfs/src
parent9b12157fea5ac054106ed14f9d91cdb8bad665c7 (diff)
dict: fix VALIDATE_DATA_AND_LOG call
Couple of instances doesn't pass enough number of parameters to the function resulting compilation to fail. Updates #203 Change-Id: Id8caa6fe7fc611645ad7ff11d81a2462e4ec6bab Signed-off-by: Atin Mukherjee <amukherj@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/dict.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libglusterfs/src/dict.c b/libglusterfs/src/dict.c
index d8c145da6d5..9dd1de4f81a 100644
--- a/libglusterfs/src/dict.c
+++ b/libglusterfs/src/dict.c
@@ -2417,7 +2417,7 @@ dict_get_gfuuid (dict_t *this, char *key, uuid_t *gfid)
goto err;
}
- VALIDATE_DATA_AND_LOG(data, GF_DATA_TYPE_GFUUID, -EINVAL);
+ VALIDATE_DATA_AND_LOG(data, GF_DATA_TYPE_GFUUID, key, -EINVAL);
memcpy (*gfid, data->data, min(data->len, sizeof (uuid_t)));
@@ -2449,7 +2449,7 @@ dict_get_iatt (dict_t *this, char *key, struct iatt *iatt)
goto err;
}
- VALIDATE_DATA_AND_LOG(data, GF_DATA_TYPE_IATT, -EINVAL);
+ VALIDATE_DATA_AND_LOG(data, GF_DATA_TYPE_IATT, key, -EINVAL);
memcpy (iatt, data->data, min(data->len, sizeof (struct iatt)));