[LTP] [PATCH 1/1] ns_ifmove.c: Rewrite to new API
Wei Gao
wegao@suse.com
Wed Mar 15 01:56:37 CET 2023
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?
More information about the ltp
mailing list