[PATCH] app/proc-info: allow overriding defaults options

Stephen Hemminger stephen at networkplumber.org
Thu Nov 13 18:31:00 CET 2025


On Wed, 12 Nov 2025 18:33:13 +0530
Mohit Kumar Parjapat <mprajapat at marvell.com> wrote:

>  
> +static void
> +check_user_args(int argc, char **argv, uint8_t *arg_bitmap)
> +{
> +	int i;
> +
> +	for (i = 1; i < argc; i++) {
> +		if (strncmp(argv[i], "-l", 2) == 0)
> +			*arg_bitmap |= ARG_C_FLAG;
> +		else if (strncmp(argv[i], "-n", 2) == 0)
> +			*arg_bitmap |= ARG_N_FLAG;
> +	}
> +}
> +

There is no reason for the -n flag in this application.
Purely cargo-cult coding.


More information about the dev mailing list