[RFC PATCH] ACPICA: sprintf should use ACPI_SIZE_MAX
From: Vivien Didelot
Date: Tue Jan 03 2017 - 18:33:48 EST
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@xxxxxxxxxxxxxxxxxxxx>
---
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