2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-17 09:43:59 +08:00

ACPICA: Remove unnecessary arguments to ACPI_INFO

ACPICA commit 181f56605a771e0b91e24b0648d2565ca70bea20

This is used as a purely infomation message, without module name
and line number information. Therefore, these arguments are
not needed and they are unnecessary overhead.
Arguments are removed.
ACPICA BZ 872.

Link: https://github.com/acpica/acpica/commit/181f5660
Link: https://bugs.acpica.org/show_bug.cgi?id=872
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>
This commit is contained in:
Bob Moore 2016-02-19 14:16:42 +08:00 committed by Rafael J. Wysocki
parent c340e5f0f8
commit 05fb04b54f
14 changed files with 20 additions and 33 deletions

View File

@ -348,7 +348,7 @@ void acpi_db_display_table_info(char *table_arg)
} else { } else {
/* If the pointer is null, the table has been unloaded */ /* If the pointer is null, the table has been unloaded */
ACPI_INFO((AE_INFO, "%4.4s - Table has been unloaded", ACPI_INFO(("%4.4s - Table has been unloaded",
table_desc->signature.ascii)); table_desc->signature.ascii));
} }
} }

View File

@ -809,8 +809,7 @@ acpi_ds_terminate_control_method(union acpi_operand_object *method_desc,
if (method_desc->method. if (method_desc->method.
info_flags & ACPI_METHOD_SERIALIZED_PENDING) { info_flags & ACPI_METHOD_SERIALIZED_PENDING) {
if (walk_state) { if (walk_state) {
ACPI_INFO((AE_INFO, ACPI_INFO(("Marking method %4.4s as Serialized "
"Marking method %4.4s as Serialized "
"because of AE_ALREADY_EXISTS error", "because of AE_ALREADY_EXISTS error",
walk_state->method_node->name. walk_state->method_node->name.
ascii)); ascii));

View File

@ -524,8 +524,7 @@ acpi_ds_build_internal_package_obj(struct acpi_walk_state *walk_state,
arg = arg->common.next; arg = arg->common.next;
} }
ACPI_INFO((AE_INFO, ACPI_INFO(("Actual Package length (%u) is larger than "
"Actual Package length (%u) is larger than "
"NumElements field (%u), truncated", "NumElements field (%u), truncated",
i, element_count)); i, element_count));
} else if (i < element_count) { } else if (i < element_count) {

View File

@ -499,8 +499,7 @@ acpi_ev_initialize_gpe_block(struct acpi_gpe_xrupt_info *gpe_xrupt_info,
} }
if (gpe_enabled_count) { if (gpe_enabled_count) {
ACPI_INFO((AE_INFO, ACPI_INFO(("Enabled %u GPEs in block %02X to %02X",
"Enabled %u GPEs in block %02X to %02X",
gpe_enabled_count, (u32)gpe_block->block_base_number, gpe_enabled_count, (u32)gpe_block->block_base_number,
(u32)(gpe_block->block_base_number + (u32)(gpe_block->block_base_number +
(gpe_block->gpe_count - 1)))); (gpe_block->gpe_count - 1))));

View File

@ -281,7 +281,7 @@ void acpi_ev_update_gpes(acpi_owner_id table_owner_id)
} }
if (walk_info.count) { if (walk_info.count) {
ACPI_INFO((AE_INFO, "Enabled %u new GPEs", walk_info.count)); ACPI_INFO(("Enabled %u new GPEs", walk_info.count));
} }
(void)acpi_ut_release_mutex(ACPI_MTX_EVENTS); (void)acpi_ut_release_mutex(ACPI_MTX_EVENTS);

View File

@ -252,7 +252,7 @@ acpi_ex_load_table_op(struct acpi_walk_state *walk_state,
status = acpi_get_table_by_index(table_index, &table); status = acpi_get_table_by_index(table_index, &table);
if (ACPI_SUCCESS(status)) { if (ACPI_SUCCESS(status)) {
ACPI_INFO((AE_INFO, "Dynamic OEM Table Load:")); ACPI_INFO(("Dynamic OEM Table Load:"));
acpi_tb_print_table_header(0, table); acpi_tb_print_table_header(0, table);
} }
@ -472,7 +472,7 @@ acpi_ex_load_op(union acpi_operand_object *obj_desc,
/* Install the new table into the local data structures */ /* Install the new table into the local data structures */
ACPI_INFO((AE_INFO, "Dynamic OEM Table Load:")); ACPI_INFO(("Dynamic OEM Table Load:"));
(void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES); (void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES);
status = acpi_tb_install_standard_table(ACPI_PTR_TO_PHYSADDR(table), status = acpi_tb_install_standard_table(ACPI_PTR_TO_PHYSADDR(table),

View File

@ -378,8 +378,7 @@ void acpi_ns_exec_module_code_list(void)
acpi_ut_remove_reference(prev); acpi_ut_remove_reference(prev);
} }
ACPI_INFO((AE_INFO, ACPI_INFO(("Executed %u blocks of module-level executable AML code",
"Executed %u blocks of module-level executable AML code",
method_count)); method_count));
ACPI_FREE(info); ACPI_FREE(info);

View File

@ -267,8 +267,7 @@ acpi_tb_install_standard_table(acpi_physical_address address,
if (!reload && if (!reload &&
acpi_gbl_disable_ssdt_table_install && acpi_gbl_disable_ssdt_table_install &&
ACPI_COMPARE_NAME(&new_table_desc.signature, ACPI_SIG_SSDT)) { ACPI_COMPARE_NAME(&new_table_desc.signature, ACPI_SIG_SSDT)) {
ACPI_INFO((AE_INFO, ACPI_INFO(("Ignoring installation of %4.4s at %8.8X%8.8X",
"Ignoring installation of %4.4s at %8.8X%8.8X",
new_table_desc.signature.ascii, new_table_desc.signature.ascii,
ACPI_FORMAT_UINT64(address))); ACPI_FORMAT_UINT64(address)));
goto release_and_exit; goto release_and_exit;
@ -432,7 +431,7 @@ finish_override:
return; return;
} }
ACPI_INFO((AE_INFO, "%4.4s 0x%8.8X%8.8X" ACPI_INFO(("%4.4s 0x%8.8X%8.8X"
" %s table override, new table: 0x%8.8X%8.8X", " %s table override, new table: 0x%8.8X%8.8X",
old_table_desc->signature.ascii, old_table_desc->signature.ascii,
ACPI_FORMAT_UINT64(old_table_desc->address), ACPI_FORMAT_UINT64(old_table_desc->address),

View File

@ -132,7 +132,7 @@ acpi_tb_print_table_header(acpi_physical_address address,
/* FACS only has signature and length fields */ /* FACS only has signature and length fields */
ACPI_INFO((AE_INFO, "%-4.4s 0x%8.8X%8.8X %06X", ACPI_INFO(("%-4.4s 0x%8.8X%8.8X %06X",
header->signature, ACPI_FORMAT_UINT64(address), header->signature, ACPI_FORMAT_UINT64(address),
header->length)); header->length));
} else if (ACPI_VALIDATE_RSDP_SIG(header->signature)) { } else if (ACPI_VALIDATE_RSDP_SIG(header->signature)) {
@ -144,7 +144,7 @@ acpi_tb_print_table_header(acpi_physical_address address,
ACPI_OEM_ID_SIZE); ACPI_OEM_ID_SIZE);
acpi_tb_fix_string(local_header.oem_id, ACPI_OEM_ID_SIZE); acpi_tb_fix_string(local_header.oem_id, ACPI_OEM_ID_SIZE);
ACPI_INFO((AE_INFO, "RSDP 0x%8.8X%8.8X %06X (v%.2d %-6.6s)", ACPI_INFO(("RSDP 0x%8.8X%8.8X %06X (v%.2d %-6.6s)",
ACPI_FORMAT_UINT64(address), ACPI_FORMAT_UINT64(address),
(ACPI_CAST_PTR(struct acpi_table_rsdp, header)-> (ACPI_CAST_PTR(struct acpi_table_rsdp, header)->
revision > revision >
@ -158,8 +158,7 @@ acpi_tb_print_table_header(acpi_physical_address address,
acpi_tb_cleanup_table_header(&local_header, header); acpi_tb_cleanup_table_header(&local_header, header);
ACPI_INFO((AE_INFO, ACPI_INFO(("%-4.4s 0x%8.8X%8.8X"
"%-4.4s 0x%8.8X%8.8X"
" %06X (v%.2d %-6.6s %-8.8s %08X %-4.4s %08X)", " %06X (v%.2d %-6.6s %-8.8s %08X %-4.4s %08X)",
local_header.signature, ACPI_FORMAT_UINT64(address), local_header.signature, ACPI_FORMAT_UINT64(address),
local_header.length, local_header.revision, local_header.length, local_header.revision,

View File

@ -174,9 +174,7 @@ struct acpi_table_header *acpi_tb_copy_dsdt(u32 table_index)
ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL, ACPI_TABLE_ORIGIN_INTERNAL_VIRTUAL,
new_table); new_table);
ACPI_INFO((AE_INFO, ACPI_INFO(("Forced DSDT copy: length 0x%05X copied locally, original unmapped", new_table->length));
"Forced DSDT copy: length 0x%05X copied locally, original unmapped",
new_table->length));
return (new_table); return (new_table);
} }

View File

@ -206,9 +206,7 @@ acpi_status acpi_tb_load_namespace(void)
} }
if (!tables_failed) { if (!tables_failed) {
ACPI_INFO((AE_INFO, ACPI_INFO(("%u ACPI AML tables successfully acquired and loaded\n", tables_loaded));
"%u ACPI AML tables successfully acquired and loaded\n",
tables_loaded));
} else { } else {
ACPI_ERROR((AE_INFO, ACPI_ERROR((AE_INFO,
"%u table load failures, %u successful", "%u table load failures, %u successful",
@ -301,7 +299,7 @@ acpi_status acpi_load_table(struct acpi_table_header *table)
/* Install the table and load it into the namespace */ /* Install the table and load it into the namespace */
ACPI_INFO((AE_INFO, "Host-directed Dynamic ACPI Table Load:")); ACPI_INFO(("Host-directed Dynamic ACPI Table Load:"));
(void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES); (void)acpi_ut_acquire_mutex(ACPI_MTX_TABLES);
status = acpi_tb_install_standard_table(ACPI_PTR_TO_PHYSADDR(table), status = acpi_tb_install_standard_table(ACPI_PTR_TO_PHYSADDR(table),

View File

@ -712,7 +712,7 @@ void acpi_ut_dump_allocations(u32 component, const char *module)
/* Print summary */ /* Print summary */
if (!num_outstanding) { if (!num_outstanding) {
ACPI_INFO((AE_INFO, "No outstanding allocations")); ACPI_INFO(("No outstanding allocations"));
} else { } else {
ACPI_ERROR((AE_INFO, "%u(0x%X) Outstanding allocations", ACPI_ERROR((AE_INFO, "%u(0x%X) Outstanding allocations",
num_outstanding, num_outstanding)); num_outstanding, num_outstanding));

View File

@ -175,8 +175,7 @@ ACPI_EXPORT_SYMBOL(acpi_warning)
* TBD: module_name and line_number args are not needed, should be removed. * TBD: module_name and line_number args are not needed, should be removed.
* *
******************************************************************************/ ******************************************************************************/
void ACPI_INTERNAL_VAR_XFACE void ACPI_INTERNAL_VAR_XFACE acpi_info(const char *format, ...)
acpi_info(const char *module_name, u32 line_number, const char *format, ...)
{ {
va_list arg_list; va_list arg_list;

View File

@ -897,11 +897,9 @@ ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
acpi_warning(const char *module_name, acpi_warning(const char *module_name,
u32 line_number, u32 line_number,
const char *format, ...)) const char *format, ...))
ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(1)
void ACPI_INTERNAL_VAR_XFACE void ACPI_INTERNAL_VAR_XFACE
acpi_info(const char *module_name, acpi_info(const char *format, ...))
u32 line_number,
const char *format, ...))
ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3) ACPI_MSG_DEPENDENT_RETURN_VOID(ACPI_PRINTF_LIKE(3)
void ACPI_INTERNAL_VAR_XFACE void ACPI_INTERNAL_VAR_XFACE
acpi_bios_error(const char *module_name, acpi_bios_error(const char *module_name,