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/utobject.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/utobject.c')
-rw-r--r-- | drivers/acpi/acpica/utobject.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/acpi/acpica/utobject.c b/drivers/acpi/acpica/utobject.c index 3356f0cb0745..fd1fa2749ea5 100644 --- a/drivers/acpi/acpica/utobject.c +++ b/drivers/acpi/acpica/utobject.c | |||
@@ -251,7 +251,7 @@ union acpi_operand_object *acpi_ut_create_buffer_object(acpi_size buffer_size) | |||
251 | 251 | ||
252 | buffer = ACPI_ALLOCATE_ZEROED(buffer_size); | 252 | buffer = ACPI_ALLOCATE_ZEROED(buffer_size); |
253 | if (!buffer) { | 253 | if (!buffer) { |
254 | ACPI_ERROR((AE_INFO, "Could not allocate size %X", | 254 | ACPI_ERROR((AE_INFO, "Could not allocate size %u", |
255 | (u32) buffer_size)); | 255 | (u32) buffer_size)); |
256 | acpi_ut_remove_reference(buffer_desc); | 256 | acpi_ut_remove_reference(buffer_desc); |
257 | return_PTR(NULL); | 257 | return_PTR(NULL); |
@@ -303,7 +303,7 @@ union acpi_operand_object *acpi_ut_create_string_object(acpi_size string_size) | |||
303 | */ | 303 | */ |
304 | string = ACPI_ALLOCATE_ZEROED(string_size + 1); | 304 | string = ACPI_ALLOCATE_ZEROED(string_size + 1); |
305 | if (!string) { | 305 | if (!string) { |
306 | ACPI_ERROR((AE_INFO, "Could not allocate size %X", | 306 | ACPI_ERROR((AE_INFO, "Could not allocate size %u", |
307 | (u32) string_size)); | 307 | (u32) string_size)); |
308 | acpi_ut_remove_reference(string_desc); | 308 | acpi_ut_remove_reference(string_desc); |
309 | return_PTR(NULL); | 309 | return_PTR(NULL); |
@@ -533,7 +533,7 @@ acpi_ut_get_simple_object_size(union acpi_operand_object *internal_object, | |||
533 | */ | 533 | */ |
534 | ACPI_ERROR((AE_INFO, | 534 | ACPI_ERROR((AE_INFO, |
535 | "Cannot convert to external object - " | 535 | "Cannot convert to external object - " |
536 | "unsupported Reference Class [%s] %X in object %p", | 536 | "unsupported Reference Class [%s] 0x%X in object %p", |
537 | acpi_ut_get_reference_name(internal_object), | 537 | acpi_ut_get_reference_name(internal_object), |
538 | internal_object->reference.class, | 538 | internal_object->reference.class, |
539 | internal_object)); | 539 | internal_object)); |
@@ -545,7 +545,7 @@ acpi_ut_get_simple_object_size(union acpi_operand_object *internal_object, | |||
545 | default: | 545 | default: |
546 | 546 | ||
547 | ACPI_ERROR((AE_INFO, "Cannot convert to external object - " | 547 | ACPI_ERROR((AE_INFO, "Cannot convert to external object - " |
548 | "unsupported type [%s] %X in object %p", | 548 | "unsupported type [%s] 0x%X in object %p", |
549 | acpi_ut_get_object_type_name(internal_object), | 549 | acpi_ut_get_object_type_name(internal_object), |
550 | internal_object->common.type, internal_object)); | 550 | internal_object->common.type, internal_object)); |
551 | status = AE_TYPE; | 551 | status = AE_TYPE; |