diff options
-rw-r--r-- | drivers/acpi/acpica/utprint.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/acpi/acpica/utprint.c b/drivers/acpi/acpica/utprint.c index 080e22aaba15..0ce3f5a0dd67 100644 --- a/drivers/acpi/acpica/utprint.c +++ b/drivers/acpi/acpica/utprint.c | |||
@@ -401,6 +401,7 @@ acpi_ut_vsnprintf(char *string, | |||
401 | 401 | ||
402 | /* Process width */ | 402 | /* Process width */ |
403 | 403 | ||
404 | width = -1; | ||
404 | if (ACPI_IS_DIGIT(*format)) { | 405 | if (ACPI_IS_DIGIT(*format)) { |
405 | format = acpi_ut_scan_number(format, &number); | 406 | format = acpi_ut_scan_number(format, &number); |
406 | width = (s32) number; | 407 | width = (s32) number; |
@@ -415,6 +416,7 @@ acpi_ut_vsnprintf(char *string, | |||
415 | 416 | ||
416 | /* Process precision */ | 417 | /* Process precision */ |
417 | 418 | ||
419 | precision = -1; | ||
418 | if (*format == '.') { | 420 | if (*format == '.') { |
419 | ++format; | 421 | ++format; |
420 | if (ACPI_IS_DIGIT(*format)) { | 422 | if (ACPI_IS_DIGIT(*format)) { |
@@ -431,6 +433,7 @@ acpi_ut_vsnprintf(char *string, | |||
431 | 433 | ||
432 | /* Process qualifier */ | 434 | /* Process qualifier */ |
433 | 435 | ||
436 | qualifier = -1; | ||
434 | if (*format == 'h' || *format == 'l' || *format == 'L') { | 437 | if (*format == 'h' || *format == 'l' || *format == 'L') { |
435 | qualifier = *format; | 438 | qualifier = *format; |
436 | ++format; | 439 | ++format; |