diff options
| author | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 04:29:00 -0500 |
|---|---|---|
| committer | Jeff Garzik <jgarzik@pobox.com> | 2006-02-09 04:29:00 -0500 |
| commit | 9caafa6c8686e319cf4d5f3757b3972c6c522b7c (patch) | |
| tree | b38979b835b5d22e681b175d0b98a3c7560d9c59 /drivers/acpi/executer/exfield.c | |
| parent | 51e9f2ff83df6b1c81c5c44f4486c68ed87aa20e (diff) | |
| parent | cac0e8e8bb2e7a086643bdd00c41d900a79bb4fa (diff) | |
Merge branch 'upstream-fixes'
Diffstat (limited to 'drivers/acpi/executer/exfield.c')
| -rw-r--r-- | drivers/acpi/executer/exfield.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/acpi/executer/exfield.c b/drivers/acpi/executer/exfield.c index ab1ba399aa28..e259201ce9a0 100644 --- a/drivers/acpi/executer/exfield.c +++ b/drivers/acpi/executer/exfield.c | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | *****************************************************************************/ | 5 | *****************************************************************************/ |
| 6 | 6 | ||
| 7 | /* | 7 | /* |
| 8 | * Copyright (C) 2000 - 2005, R. Byron Moore | 8 | * Copyright (C) 2000 - 2006, R. Byron Moore |
| 9 | * All rights reserved. | 9 | * All rights reserved. |
| 10 | * | 10 | * |
| 11 | * Redistribution and use in source and binary forms, with or without | 11 | * Redistribution and use in source and binary forms, with or without |
| @@ -249,13 +249,18 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc, | |||
| 249 | * Source must be a buffer of sufficient size (ACPI_SMBUS_BUFFER_SIZE). | 249 | * Source must be a buffer of sufficient size (ACPI_SMBUS_BUFFER_SIZE). |
| 250 | */ | 250 | */ |
| 251 | if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_BUFFER) { | 251 | if (ACPI_GET_OBJECT_TYPE(source_desc) != ACPI_TYPE_BUFFER) { |
| 252 | ACPI_REPORT_ERROR(("SMBus write requires Buffer, found type %s\n", acpi_ut_get_object_type_name(source_desc))); | 252 | ACPI_ERROR((AE_INFO, |
| 253 | "SMBus write requires Buffer, found type %s", | ||
| 254 | acpi_ut_get_object_type_name(source_desc))); | ||
| 253 | 255 | ||
| 254 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); | 256 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); |
| 255 | } | 257 | } |
| 256 | 258 | ||
| 257 | if (source_desc->buffer.length < ACPI_SMBUS_BUFFER_SIZE) { | 259 | if (source_desc->buffer.length < ACPI_SMBUS_BUFFER_SIZE) { |
| 258 | ACPI_REPORT_ERROR(("SMBus write requires Buffer of length %X, found length %X\n", ACPI_SMBUS_BUFFER_SIZE, source_desc->buffer.length)); | 260 | ACPI_ERROR((AE_INFO, |
| 261 | "SMBus write requires Buffer of length %X, found length %X", | ||
| 262 | ACPI_SMBUS_BUFFER_SIZE, | ||
| 263 | source_desc->buffer.length)); | ||
| 259 | 264 | ||
| 260 | return_ACPI_STATUS(AE_AML_BUFFER_LIMIT); | 265 | return_ACPI_STATUS(AE_AML_BUFFER_LIMIT); |
| 261 | } | 266 | } |
