17b94a
From 5a7348a266587704dae4f1ddda16b7c95f547251 Mon Sep 17 00:00:00 2001
17b94a
From: Rinku Kothiya <rkothiya@redhat.com>
17b94a
Date: Sun, 7 Feb 2021 13:40:24 +0000
17b94a
Subject: [PATCH 530/532] gfapi: avoid crash while logging message.
17b94a
17b94a
Breaking parameter into two different parameter
17b94a
to avoid a crash.
17b94a
17b94a
Upstream:
17b94a
> Reviewed-on: https://github.com/gluster/glusterfs/pull/2139
17b94a
> fixes: #2138
17b94a
> Change-Id: Idd5f3631488c1d892748f83e6847fb6fd2d0802a
17b94a
> Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
17b94a
17b94a
BUG: 1691320
17b94a
17b94a
Change-Id: Ifd6a96982ffd4e5334f8be2297de2ad826f3145b
17b94a
Signed-off-by: Rinku Kothiya <rkothiya@redhat.com>
17b94a
Reviewed-on: https://code.engineering.redhat.com/gerrit/226851
17b94a
Tested-by: RHGS Build Bot <nigelb@redhat.com>
17b94a
Reviewed-by: Sunil Kumar Heggodu Gopala Acharya <sheggodu@redhat.com>
17b94a
---
17b94a
 api/src/glfs-fops.c | 2 +-
17b94a
 1 file changed, 1 insertion(+), 1 deletion(-)
17b94a
17b94a
diff --git a/api/src/glfs-fops.c b/api/src/glfs-fops.c
17b94a
index 051541f..6dc3b66 100644
17b94a
--- a/api/src/glfs-fops.c
17b94a
+++ b/api/src/glfs-fops.c
17b94a
@@ -1529,7 +1529,7 @@ glfs_pwritev_common(struct glfs_fd *glfd, const struct iovec *iovec, int iovcnt,
17b94a
         ret = -1;
17b94a
         errno = EINVAL;
17b94a
         gf_smsg(THIS->name, GF_LOG_ERROR, errno, API_MSG_INVALID_ARG,
17b94a
-                "size >= %llu is not allowed", GF_UNIT_GB, NULL);
17b94a
+                "Data size too large", "size=%llu", GF_UNIT_GB, NULL);
17b94a
         goto out;
17b94a
     }
17b94a
 
17b94a
-- 
17b94a
1.8.3.1
17b94a