diff options
author | Bob Moore <robert.moore@intel.com> | 2010-03-05 04:56:40 -0500 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2010-04-20 10:42:52 -0400 |
commit | f6a22b0bc417042e83117f52ab1a03696af185ab (patch) | |
tree | 0d03a22c27c592338629f2af67e7b2b9a8521b01 /drivers/acpi/acpica/dsobject.c | |
parent | 0e264f0bc22207b99f33ee06e614186480682f15 (diff) |
ACPICA: Standardize integer output for ACPICA warnings/errors
Always use 0x prefix for hex output, use %u for integer output
(all integers are unsigned.)
Signed-off-by: Bob Moore <robert.moore@intel.com>
Signed-off-by: Lin Ming <ming.m.lin@intel.com>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/acpi/acpica/dsobject.c')
-rw-r--r-- | drivers/acpi/acpica/dsobject.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/acpi/acpica/dsobject.c b/drivers/acpi/acpica/dsobject.c index 891e08bf560b..3607adcaf085 100644 --- a/drivers/acpi/acpica/dsobject.c +++ b/drivers/acpi/acpica/dsobject.c | |||
@@ -288,7 +288,7 @@ acpi_ds_build_internal_buffer_obj(struct acpi_walk_state *walk_state, | |||
288 | if (byte_list) { | 288 | if (byte_list) { |
289 | if (byte_list->common.aml_opcode != AML_INT_BYTELIST_OP) { | 289 | if (byte_list->common.aml_opcode != AML_INT_BYTELIST_OP) { |
290 | ACPI_ERROR((AE_INFO, | 290 | ACPI_ERROR((AE_INFO, |
291 | "Expecting bytelist, got AML opcode %X in op %p", | 291 | "Expecting bytelist, found AML opcode 0x%X in op %p", |
292 | byte_list->common.aml_opcode, byte_list)); | 292 | byte_list->common.aml_opcode, byte_list)); |
293 | 293 | ||
294 | acpi_ut_remove_reference(obj_desc); | 294 | acpi_ut_remove_reference(obj_desc); |
@@ -511,7 +511,7 @@ acpi_ds_build_internal_package_obj(struct acpi_walk_state *walk_state, | |||
511 | } | 511 | } |
512 | 512 | ||
513 | ACPI_INFO((AE_INFO, | 513 | ACPI_INFO((AE_INFO, |
514 | "Actual Package length (0x%X) is larger than NumElements field (0x%X), truncated\n", | 514 | "Actual Package length (%u) is larger than NumElements field (%u), truncated\n", |
515 | i, element_count)); | 515 | i, element_count)); |
516 | } else if (i < element_count) { | 516 | } else if (i < element_count) { |
517 | /* | 517 | /* |
@@ -519,7 +519,7 @@ acpi_ds_build_internal_package_obj(struct acpi_walk_state *walk_state, | |||
519 | * Note: this is not an error, the package is padded out with NULLs. | 519 | * Note: this is not an error, the package is padded out with NULLs. |
520 | */ | 520 | */ |
521 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, | 521 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, |
522 | "Package List length (0x%X) smaller than NumElements count (0x%X), padded with null elements\n", | 522 | "Package List length (%u) smaller than NumElements count (%u), padded with null elements\n", |
523 | i, element_count)); | 523 | i, element_count)); |
524 | } | 524 | } |
525 | 525 | ||
@@ -701,7 +701,7 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state, | |||
701 | default: | 701 | default: |
702 | 702 | ||
703 | ACPI_ERROR((AE_INFO, | 703 | ACPI_ERROR((AE_INFO, |
704 | "Unknown constant opcode %X", | 704 | "Unknown constant opcode 0x%X", |
705 | opcode)); | 705 | opcode)); |
706 | status = AE_AML_OPERAND_TYPE; | 706 | status = AE_AML_OPERAND_TYPE; |
707 | break; | 707 | break; |
@@ -717,7 +717,7 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state, | |||
717 | break; | 717 | break; |
718 | 718 | ||
719 | default: | 719 | default: |
720 | ACPI_ERROR((AE_INFO, "Unknown Integer type %X", | 720 | ACPI_ERROR((AE_INFO, "Unknown Integer type 0x%X", |
721 | op_info->type)); | 721 | op_info->type)); |
722 | status = AE_AML_OPERAND_TYPE; | 722 | status = AE_AML_OPERAND_TYPE; |
723 | break; | 723 | break; |
@@ -806,7 +806,7 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state, | |||
806 | default: | 806 | default: |
807 | 807 | ||
808 | ACPI_ERROR((AE_INFO, | 808 | ACPI_ERROR((AE_INFO, |
809 | "Unimplemented reference type for AML opcode: %4.4X", | 809 | "Unimplemented reference type for AML opcode: 0x%4.4X", |
810 | opcode)); | 810 | opcode)); |
811 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); | 811 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); |
812 | } | 812 | } |
@@ -816,7 +816,7 @@ acpi_ds_init_object_from_op(struct acpi_walk_state *walk_state, | |||
816 | 816 | ||
817 | default: | 817 | default: |
818 | 818 | ||
819 | ACPI_ERROR((AE_INFO, "Unimplemented data type: %X", | 819 | ACPI_ERROR((AE_INFO, "Unimplemented data type: 0x%X", |
820 | obj_desc->common.type)); | 820 | obj_desc->common.type)); |
821 | 821 | ||
822 | status = AE_AML_OPERAND_TYPE; | 822 | status = AE_AML_OPERAND_TYPE; |