Whamcloud - gitweb
LU-17947 build: fix LASSERTF [-Werror=format=] failure 15/55415/3
authorJian Yu <yujian@whamcloud.com>
Thu, 13 Jun 2024 11:44:46 +0000 (07:44 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 25 Jun 2024 03:32:59 +0000 (03:32 +0000)
commit1f90d81bf9612ded9eb980e99bcd7c89bfc779c3
treef8d55dbbbe8d59ab3780d8edf39ae98167080445
parent3e8d005bc94d82dfc8010df5350fbf4938a4e547
LU-17947 build: fix LASSERTF [-Werror=format=] failure

This patch fixes the following build failures:

libcfs/include/libcfs/libcfs_private.h:89:34:
error: format '%o' expects argument of type 'unsigned int',
but argument 4 has type 'long unsigned int' [-Werror=format=]
   89 | "ASSERTION( %s ) failed: " fmt, #cond, \
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~
lustre/ptlrpc/wiretest.c:2718:9: note: in expansion of macro 'LASSERTF'
 2718 | LASSERTF(MDS_FMODE_CLOSED == 000000000000UL, "found 0%.11oUL\n",
      | ^~~~~~~~

Test-Parameters: trivial
Signed-off-by: Jian Yu <yujian@whamcloud.com>
Change-Id: I97a895e6234721c34f681d0ee7ce91ead4dd30f8
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55415
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ptlrpc/wiretest.c
lustre/utils/wirecheck.c
lustre/utils/wiretest.c