lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAJZ5v0gz6AepoYjyWjefUp6xRQiX9KZ3AyGyPo73RW-2SdaoTA@mail.gmail.com>
Date: Tue, 12 Aug 2025 15:11:04 +0200
From: "Rafael J. Wysocki" <rafael@...nel.org>
To: Xichao Zhao <zhao.xichao@...o.com>
Cc: rafael@...nel.org, robert.moore@...el.com, lenb@...nel.org, 
	linux-acpi@...r.kernel.org, acpica-devel@...ts.linux.dev, 
	linux-kernel@...r.kernel.org
Subject: Re: [PATCH] ACPICA: Use str_plural() to simplify the code

On Mon, Aug 11, 2025 at 2:22 PM Xichao Zhao <zhao.xichao@...o.com> wrote:
>
> Use the string choice helper function str_plural() to simplify the code.
>
> Signed-off-by: Xichao Zhao <zhao.xichao@...o.com>
> ---
>  drivers/acpi/acpica/utpredef.c | 2 +-

ACPICA changes need to be submitted as pull requests to the upstream
ACPICA project on GitHub.  Corresponding Linux patches can only be
applied after those changes have been accepted upstream (and those
patches need to point to the corresponding upstream ACPICA commits via
Link: tags).

Thanks!

>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/acpi/acpica/utpredef.c b/drivers/acpi/acpica/utpredef.c
> index d9bd80e2d32a..658aeb397111 100644
> --- a/drivers/acpi/acpica/utpredef.c
> +++ b/drivers/acpi/acpica/utpredef.c
> @@ -248,7 +248,7 @@ acpi_ut_display_predefined_method(char *buffer,
>         printf("%4.4s    Requires %s%u argument%s",
>                this_name->info.name,
>                (this_name->info.argument_list & ARG_COUNT_IS_MINIMUM) ?
> -              "(at least) " : "", arg_count, arg_count != 1 ? "s" : "");
> +              "(at least) " : "", arg_count, str_plural(arg_count));
>
>         /* Display the types for any arguments */
>
> --
> 2.34.1
>
>

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ