Re: [LTP] [PATCH 1/1] ns_ifmove.c: Rewrite to new API

Wei Gao via ltp
2023-03-15T00:56:56Z

On Thu, Mar 09, 2023 at 03:59:17PM +0100, Petr Vorel wrote:
> Signed-off-by: Petr Vorel <pvorel@suse.cz>
> ---
> testcases/kernel/containers/share/ns_ifmove.c | 98 ++++++-------------
> 1 file changed, 28 insertions(+), 70 deletions(-)
>
> int intf_index, pid, rtnetlink_socket;
>
> if (argc != 3) {
> - tst_resm(TINFO, "%s <INTERFACE_NAME> <NAMESPACE_PID>",
> - argv[0]);
> + printf("ns_ifmove <INTERFACE_NAME> <NAMESPACE_PID>\n");
> return 1;
> }
>
should we use tst_res(TINFO) instead of printf?