Whamcloud - gitweb
LU-17000 utils: Use correct printf specifier for lustre_rsync.c 54/55154/2
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 20 May 2024 07:17:58 +0000 (03:17 -0400)
committerOleg Drokin <green@whamcloud.com>
Mon, 10 Jun 2024 06:13:38 +0000 (06:13 +0000)
commitf155d6456584ada25023bfc028286728ba113e53
tree50e151ed0364607549553e8576d32486279758a2
parent182b0101d3b803173040de2c69e41955fd6728b2
LU-17000 utils: Use correct printf specifier for lustre_c

In lr_copy_xattr() use "%s" for "char *" and "%zd"
for "ssize_t" data type.

Change 'struct lr_info' fields xsize and xvsize from size_t
to ssize_t as extended attribute functions can return
negative values

Test-Parameters: trivial testlist=lustre-rsync-test
CoverityID: 397866 ("Invalid type in argument to printf format specifier")
CoverityID: 397573 ("Invalid type in argument to printf format specifier")
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Idd7c4f81c1a1751c595c86b10493aab6f959059f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55154
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/utils/lustre_rsync.c