Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1550290
| From | Vivien Didelot <vivien.didelot@savoirfairelinux.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH] ACPICA: sprintf should use ACPI_SIZE_MAX |
| Date | 2017-01-04 00:40 +0100 |
| Message-ID | <sVGQp-4Vk-1@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
sprintf() should use the architecture independent ACPI_SIZE_MAX value instead of the ACPI_UINT32_MAX 32-bit variant. Change this. Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com> --- drivers/acpi/acpica/utprint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/acpica/utprint.c b/drivers/acpi/acpica/utprint.c index 40eba804d49c..5001043351e8 100644 --- a/drivers/acpi/acpica/utprint.c +++ b/drivers/acpi/acpica/utprint.c @@ -627,7 +627,7 @@ int sprintf(char *string, const char *format, ...) int length; va_start(args, format); - length = vsnprintf(string, ACPI_UINT32_MAX, format, args); + length = vsnprintf(string, ACPI_SIZE_MAX, format, args); va_end(args); return (length); -- 2.11.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[RFC PATCH] ACPICA: sprintf should use ACPI_SIZE_MAX Vivien Didelot <vivien.didelot@savoirfairelinux.com> - 2017-01-04 00:40 +0100
csiph-web