diff options
author | Bob Moore <robert.moore@intel.com> | 2008-06-10 01:42:13 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-16 17:27:03 -0400 |
commit | 67a119f990063f5662574f6d6414fe9bc5ece86a (patch) | |
tree | 96be8ffbbe56a0a2a85dba14b8c81f153ac218f2 /drivers/acpi/utilities/utdebug.c | |
parent | 11f2a61ab418305167f9a3f3a31a50449222f64b (diff) |
ACPICA: Eliminate acpi_native_uint type v2
No longer needed; replaced mostly with u32, but also acpi_size
where a type that changes 32/64 bit on 32/64-bit platforms is
required.
v2: Fix a cast of a 32-bit int to a pointer in ACPI to avoid a compiler warning.
from David Howells
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>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Diffstat (limited to 'drivers/acpi/utilities/utdebug.c')
-rw-r--r-- | drivers/acpi/utilities/utdebug.c | 28 |
1 files changed, 17 insertions, 11 deletions
diff --git a/drivers/acpi/utilities/utdebug.c b/drivers/acpi/utilities/utdebug.c index f938f465efa4..3919fe599f94 100644 --- a/drivers/acpi/utilities/utdebug.c +++ b/drivers/acpi/utilities/utdebug.c | |||
@@ -519,8 +519,8 @@ acpi_ut_ptr_exit(u32 line_number, | |||
519 | 519 | ||
520 | void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | 520 | void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) |
521 | { | 521 | { |
522 | acpi_native_uint i = 0; | 522 | u32 i = 0; |
523 | acpi_native_uint j; | 523 | u32 j; |
524 | u32 temp32; | 524 | u32 temp32; |
525 | u8 buf_char; | 525 | u8 buf_char; |
526 | 526 | ||
@@ -539,7 +539,7 @@ void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | |||
539 | 539 | ||
540 | /* Print current offset */ | 540 | /* Print current offset */ |
541 | 541 | ||
542 | acpi_os_printf("%6.4X: ", (u32) i); | 542 | acpi_os_printf("%6.4X: ", i); |
543 | 543 | ||
544 | /* Print 16 hex chars */ | 544 | /* Print 16 hex chars */ |
545 | 545 | ||
@@ -549,7 +549,7 @@ void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | |||
549 | /* Dump fill spaces */ | 549 | /* Dump fill spaces */ |
550 | 550 | ||
551 | acpi_os_printf("%*s", ((display * 2) + 1), " "); | 551 | acpi_os_printf("%*s", ((display * 2) + 1), " "); |
552 | j += (acpi_native_uint) display; | 552 | j += display; |
553 | continue; | 553 | continue; |
554 | } | 554 | } |
555 | 555 | ||
@@ -557,32 +557,38 @@ void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | |||
557 | case DB_BYTE_DISPLAY: | 557 | case DB_BYTE_DISPLAY: |
558 | default: /* Default is BYTE display */ | 558 | default: /* Default is BYTE display */ |
559 | 559 | ||
560 | acpi_os_printf("%02X ", buffer[i + j]); | 560 | acpi_os_printf("%02X ", |
561 | buffer[(acpi_size) i + j]); | ||
561 | break; | 562 | break; |
562 | 563 | ||
563 | case DB_WORD_DISPLAY: | 564 | case DB_WORD_DISPLAY: |
564 | 565 | ||
565 | ACPI_MOVE_16_TO_32(&temp32, &buffer[i + j]); | 566 | ACPI_MOVE_16_TO_32(&temp32, |
567 | &buffer[(acpi_size) i + j]); | ||
566 | acpi_os_printf("%04X ", temp32); | 568 | acpi_os_printf("%04X ", temp32); |
567 | break; | 569 | break; |
568 | 570 | ||
569 | case DB_DWORD_DISPLAY: | 571 | case DB_DWORD_DISPLAY: |
570 | 572 | ||
571 | ACPI_MOVE_32_TO_32(&temp32, &buffer[i + j]); | 573 | ACPI_MOVE_32_TO_32(&temp32, |
574 | &buffer[(acpi_size) i + j]); | ||
572 | acpi_os_printf("%08X ", temp32); | 575 | acpi_os_printf("%08X ", temp32); |
573 | break; | 576 | break; |
574 | 577 | ||
575 | case DB_QWORD_DISPLAY: | 578 | case DB_QWORD_DISPLAY: |
576 | 579 | ||
577 | ACPI_MOVE_32_TO_32(&temp32, &buffer[i + j]); | 580 | ACPI_MOVE_32_TO_32(&temp32, |
581 | &buffer[(acpi_size) i + j]); | ||
578 | acpi_os_printf("%08X", temp32); | 582 | acpi_os_printf("%08X", temp32); |
579 | 583 | ||
580 | ACPI_MOVE_32_TO_32(&temp32, &buffer[i + j + 4]); | 584 | ACPI_MOVE_32_TO_32(&temp32, |
585 | &buffer[(acpi_size) i + j + | ||
586 | 4]); | ||
581 | acpi_os_printf("%08X ", temp32); | 587 | acpi_os_printf("%08X ", temp32); |
582 | break; | 588 | break; |
583 | } | 589 | } |
584 | 590 | ||
585 | j += (acpi_native_uint) display; | 591 | j += display; |
586 | } | 592 | } |
587 | 593 | ||
588 | /* | 594 | /* |
@@ -596,7 +602,7 @@ void acpi_ut_dump_buffer2(u8 * buffer, u32 count, u32 display) | |||
596 | return; | 602 | return; |
597 | } | 603 | } |
598 | 604 | ||
599 | buf_char = buffer[i + j]; | 605 | buf_char = buffer[(acpi_size) i + j]; |
600 | if (ACPI_IS_PRINT(buf_char)) { | 606 | if (ACPI_IS_PRINT(buf_char)) { |
601 | acpi_os_printf("%c", buf_char); | 607 | acpi_os_printf("%c", buf_char); |
602 | } else { | 608 | } else { |