aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/acpica/utprint.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-08-05 16:50:12 -0400
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-08-05 16:50:12 -0400
commit8b80c0f187d8711fede71b7bd6fb80cb76bb8be9 (patch)
tree1f7582124a4dc42eded38668f393db16ddd7d658 /drivers/acpi/acpica/utprint.c
parent49c68fd448568e79598b159efc09a7864bc59ede (diff)
parent796ca778585d833023c18e1815b2e30a2d2f00fd (diff)
Merge branch 'acpica'
* acpica: ACPICA: Update version to 20140724. ACPICA: ACPI 5.1: Update for PCCT table changes. ACPICA/ARM: ACPI 5.1: Update for GTDT table changes. ACPICA/ARM: ACPI 5.1: Update for MADT changes. ACPICA/ARM: ACPI 5.1: Update for FADT changes. ACPICA: ACPI 5.1: Support for the _CCA predifined name. ACPICA: ACPI 5.1: New notify value for System Affinity Update. ACPICA: ACPI 5.1: Support for the _DSD predefined name. ACPICA: Debug object: Add current value of Timer() to debug line prefix. ACPICA: acpihelp: Add UUID support, restructure some existing files. ACPICA: Utilities: Fix local printf issue. ACPICA: Tables: Update for DMAR table changes. ACPICA: Remove some extraneous printf arguments. ACPICA: Update for comments/formatting. No functional changes. ACPICA: Disassembler: Add support for the ToUUID opererator (macro). ACPICA: Remove a redundant cast to acpi_size for ACPI_OFFSET() macro. ACPICA: Work around an ancient GCC bug.
Diffstat (limited to 'drivers/acpi/acpica/utprint.c')
-rw-r--r--drivers/acpi/acpica/utprint.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/acpi/acpica/utprint.c b/drivers/acpi/acpica/utprint.c
index 10311648f701..0ce3f5a0dd67 100644
--- a/drivers/acpi/acpica/utprint.c
+++ b/drivers/acpi/acpica/utprint.c
@@ -242,6 +242,7 @@ static char *acpi_ut_format_number(char *string,
242 u64 number, 242 u64 number,
243 u8 base, s32 width, s32 precision, u8 type) 243 u8 base, s32 width, s32 precision, u8 type)
244{ 244{
245 char *pos;
245 char sign; 246 char sign;
246 char zero; 247 char zero;
247 u8 need_prefix; 248 u8 need_prefix;
@@ -289,9 +290,8 @@ static char *acpi_ut_format_number(char *string,
289 290
290 /* Generate full string in reverse order */ 291 /* Generate full string in reverse order */
291 292
292 i = ACPI_PTR_DIFF(acpi_ut_put_number 293 pos = acpi_ut_put_number(reversed_string, number, base, upper);
293 (reversed_string, number, base, upper), 294 i = ACPI_PTR_DIFF(pos, reversed_string);
294 reversed_string);
295 295
296 /* Printing 100 using %2d gives "100", not "00" */ 296 /* Printing 100 using %2d gives "100", not "00" */
297 297
@@ -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;