[LTP] [PATCH v6 1/2] ptrace05: Refactor the test using new LTP API

Cyril Hrubis chrubis@suse.cz
Tue Jan 14 14:05:39 CET 2025


Hi!
> -int usage(const char *argv0)
> +static void print_dbg_sig(int signum)
>  {
> -	fprintf(stderr, "usage: %s [start-signum] [end-signum]\n", argv0);
> -	return 1;
> +	char const *strsig = tst_strsig(signum);
> +
> +	tst_res(TDEBUG, "[child] Sending kill(.., %s)", strsig);
>  }

Now there is no reason at all to keep this in a function.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list