[Ocfs2-tools-devel] [PATCH] vendor: rhel5: fix build failure
Joseph Qi
jiangqi903 at gmail.com
Tue Nov 15 16:28:06 PST 2016
On 16/11/11 16:13, Junxiao Bi wrote:
> register_printf_specifier() doesn't exist in old OS like rhel5,
> revert back to use register_printf_function().
>
> Fixes: 521d95ea9e11("tunefs.ocfs2: fix build warnings")
> Signed-off-by: Junxiao Bi <junxiao.bi at oracle.com>
Reviewed-by: Joseph Qi <jiangqi903 at gmail.com>
> ---
> tunefs.ocfs2/op_query.c | 26 +++++++++++++-------------
> 1 file changed, 13 insertions(+), 13 deletions(-)
>
> diff --git a/tunefs.ocfs2/op_query.c b/tunefs.ocfs2/op_query.c
> index dc24cfd5e9c3..295c185b2459 100644
> --- a/tunefs.ocfs2/op_query.c
> +++ b/tunefs.ocfs2/op_query.c
> @@ -324,19 +324,19 @@ static int query_run(struct tunefs_operation *op, ocfs2_filesys *fs,
> return 1;
> }
>
> - register_printf_specifier('B', handle_blocksize, handle_arginfo);
> - register_printf_specifier('T', handle_clustersize, handle_arginfo);
> - register_printf_specifier('N', handle_numslots, handle_arginfo);
> - register_printf_specifier('R', handle_rootdir, handle_arginfo);
> - register_printf_specifier('Y', handle_sysdir, handle_arginfo);
> - register_printf_specifier('P', handle_clustergroup, handle_arginfo);
> -
> - register_printf_specifier('V', handle_label, handle_arginfo);
> - register_printf_specifier('U', handle_uuid, handle_arginfo);
> -
> - register_printf_specifier('M', handle_compat, handle_arginfo);
> - register_printf_specifier('H', handle_incompat, handle_arginfo);
> - register_printf_specifier('O', handle_ro_compat, handle_arginfo);
> + register_printf_function('B', handle_blocksize, handle_arginfo);
> + register_printf_function('T', handle_clustersize, handle_arginfo);
> + register_printf_function('N', handle_numslots, handle_arginfo);
> + register_printf_function('R', handle_rootdir, handle_arginfo);
> + register_printf_function('Y', handle_sysdir, handle_arginfo);
> + register_printf_function('P', handle_clustergroup, handle_arginfo);
> +
> + register_printf_function('V', handle_label, handle_arginfo);
> + register_printf_function('U', handle_uuid, handle_arginfo);
> +
> + register_printf_function('M', handle_compat, handle_arginfo);
> + register_printf_function('H', handle_incompat, handle_arginfo);
> + register_printf_function('O', handle_ro_compat, handle_arginfo);
>
> query_fs = fs;
> fprintf(stdout, fmt);
More information about the Ocfs2-tools-devel
mailing list