Skip to content

Commit

Permalink
ACPICA: Remove some extraneous printf arguments.
Browse files Browse the repository at this point in the history
Arguments that have no associated % format specifier.
Apparently these are not caught by any current compilers.
ACPICA BZ 1090. Sascha Wildner.

Currently, this patch only affects applications under the
toos/power/acpi folder.

Link: https://bugs.acpica.org/show_bug.cgi?id=1090
Signed-off-by: Sascha Wildner <swildner@gmail.com>
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lv Zheng <lv.zheng@intel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
  • Loading branch information
Sascha Wildner authored and Rafael J. Wysocki committed Jul 30, 2014
1 parent d38bb00 commit b95dd17
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions drivers/acpi/acpica/exdump.c
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,7 @@ acpi_ex_dump_object(union acpi_operand_object *obj_desc,
}
}

acpi_os_printf("\n", next);
acpi_os_printf("\n");
break;

case ACPI_EXD_HDLR_LIST:
Expand Down Expand Up @@ -528,7 +528,7 @@ acpi_ex_dump_object(union acpi_operand_object *obj_desc,
}
}

acpi_os_printf("\n", next);
acpi_os_printf("\n");
break;

case ACPI_EXD_RGN_LIST:
Expand Down Expand Up @@ -562,7 +562,7 @@ acpi_ex_dump_object(union acpi_operand_object *obj_desc,
}
}

acpi_os_printf("\n", next);
acpi_os_printf("\n");
break;

case ACPI_EXD_NODE:
Expand Down
3 changes: 1 addition & 2 deletions drivers/acpi/acpica/utfileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ acpi_ut_read_table(FILE * fp,
status = fl_check_for_ascii(fp, NULL, FALSE);
if (ACPI_SUCCESS(status)) {
acpi_os_printf
("File appears to be ASCII only, must be binary\n",
table_header.length, file_size);
("File appears to be ASCII only, must be binary\n");
}
#endif
return (AE_BAD_HEADER);
Expand Down

0 comments on commit b95dd17

Please sign in to comment.