Whamcloud - gitweb
LU-6142 checkpatch: Add check for %zd 21/52421/5
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Wed, 20 Sep 2023 06:43:14 +0000 (12:13 +0530)
committerOleg Drokin <green@whamcloud.com>
Wed, 25 Oct 2023 18:03:48 +0000 (18:03 +0000)
commit687941952df1a495cc36f0cae342386572c5ab85
treea97f7a09503009da749b6a377adec24cbdd9ab50
parent60cfceb8c59364f786b31ac36c2c245b9a1e495a
LU-6142 checkpatch: Add check for %zd

CWARN() or CERROR() requires a certain format. That is
it should start with '%s:' and end with '%d' or '%ld'.
Otherwise it will throw an warning. This patch extends
checks for type '%zd'. As few return types could be of
size_t.

Test-Parameters: trivial
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Ida4f41af6b8fda0b028daeea18231b2d01905c31
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/52421
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
contrib/scripts/checkpatch.pl