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 | |
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')
52 files changed, 151 insertions, 150 deletions
diff --git a/drivers/acpi/acpica/dsfield.c b/drivers/acpi/acpica/dsfield.c index bb13817e0c31..347bee1726f1 100644 --- a/drivers/acpi/acpica/dsfield.c +++ b/drivers/acpi/acpica/dsfield.c | |||
@@ -323,7 +323,7 @@ acpi_ds_get_field_names(struct acpi_create_field_info *info, | |||
323 | default: | 323 | default: |
324 | 324 | ||
325 | ACPI_ERROR((AE_INFO, | 325 | ACPI_ERROR((AE_INFO, |
326 | "Invalid opcode in field list: %X", | 326 | "Invalid opcode in field list: 0x%X", |
327 | arg->common.aml_opcode)); | 327 | arg->common.aml_opcode)); |
328 | return_ACPI_STATUS(AE_AML_BAD_OPCODE); | 328 | return_ACPI_STATUS(AE_AML_BAD_OPCODE); |
329 | } | 329 | } |
diff --git a/drivers/acpi/acpica/dsmethod.c b/drivers/acpi/acpica/dsmethod.c index 721039233aa7..2a9a561c2f01 100644 --- a/drivers/acpi/acpica/dsmethod.c +++ b/drivers/acpi/acpica/dsmethod.c | |||
@@ -225,7 +225,7 @@ acpi_ds_begin_method_execution(struct acpi_namespace_node *method_node, | |||
225 | (walk_state->thread->current_sync_level > | 225 | (walk_state->thread->current_sync_level > |
226 | obj_desc->method.mutex->mutex.sync_level)) { | 226 | obj_desc->method.mutex->mutex.sync_level)) { |
227 | ACPI_ERROR((AE_INFO, | 227 | ACPI_ERROR((AE_INFO, |
228 | "Cannot acquire Mutex for method [%4.4s], current SyncLevel is too large (%d)", | 228 | "Cannot acquire Mutex for method [%4.4s], current SyncLevel is too large (%u)", |
229 | acpi_ut_get_node_name(method_node), | 229 | acpi_ut_get_node_name(method_node), |
230 | walk_state->thread->current_sync_level)); | 230 | walk_state->thread->current_sync_level)); |
231 | 231 | ||
diff --git a/drivers/acpi/acpica/dsmthdat.c b/drivers/acpi/acpica/dsmthdat.c index cc343b959540..f3d52f59250b 100644 --- a/drivers/acpi/acpica/dsmthdat.c +++ b/drivers/acpi/acpica/dsmthdat.c | |||
@@ -262,7 +262,7 @@ acpi_ds_method_data_get_node(u8 type, | |||
262 | 262 | ||
263 | if (index > ACPI_METHOD_MAX_LOCAL) { | 263 | if (index > ACPI_METHOD_MAX_LOCAL) { |
264 | ACPI_ERROR((AE_INFO, | 264 | ACPI_ERROR((AE_INFO, |
265 | "Local index %d is invalid (max %d)", | 265 | "Local index %u is invalid (max %u)", |
266 | index, ACPI_METHOD_MAX_LOCAL)); | 266 | index, ACPI_METHOD_MAX_LOCAL)); |
267 | return_ACPI_STATUS(AE_AML_INVALID_INDEX); | 267 | return_ACPI_STATUS(AE_AML_INVALID_INDEX); |
268 | } | 268 | } |
@@ -276,7 +276,7 @@ acpi_ds_method_data_get_node(u8 type, | |||
276 | 276 | ||
277 | if (index > ACPI_METHOD_MAX_ARG) { | 277 | if (index > ACPI_METHOD_MAX_ARG) { |
278 | ACPI_ERROR((AE_INFO, | 278 | ACPI_ERROR((AE_INFO, |
279 | "Arg index %d is invalid (max %d)", | 279 | "Arg index %u is invalid (max %u)", |
280 | index, ACPI_METHOD_MAX_ARG)); | 280 | index, ACPI_METHOD_MAX_ARG)); |
281 | return_ACPI_STATUS(AE_AML_INVALID_INDEX); | 281 | return_ACPI_STATUS(AE_AML_INVALID_INDEX); |
282 | } | 282 | } |
@@ -287,7 +287,7 @@ acpi_ds_method_data_get_node(u8 type, | |||
287 | break; | 287 | break; |
288 | 288 | ||
289 | default: | 289 | default: |
290 | ACPI_ERROR((AE_INFO, "Type %d is invalid", type)); | 290 | ACPI_ERROR((AE_INFO, "Type %u is invalid", type)); |
291 | return_ACPI_STATUS(AE_TYPE); | 291 | return_ACPI_STATUS(AE_TYPE); |
292 | } | 292 | } |
293 | 293 | ||
@@ -424,7 +424,7 @@ acpi_ds_method_data_get_value(u8 type, | |||
424 | case ACPI_REFCLASS_ARG: | 424 | case ACPI_REFCLASS_ARG: |
425 | 425 | ||
426 | ACPI_ERROR((AE_INFO, | 426 | ACPI_ERROR((AE_INFO, |
427 | "Uninitialized Arg[%d] at node %p", | 427 | "Uninitialized Arg[%u] at node %p", |
428 | index, node)); | 428 | index, node)); |
429 | 429 | ||
430 | return_ACPI_STATUS(AE_AML_UNINITIALIZED_ARG); | 430 | return_ACPI_STATUS(AE_AML_UNINITIALIZED_ARG); |
@@ -440,7 +440,7 @@ acpi_ds_method_data_get_value(u8 type, | |||
440 | default: | 440 | default: |
441 | 441 | ||
442 | ACPI_ERROR((AE_INFO, | 442 | ACPI_ERROR((AE_INFO, |
443 | "Not a Arg/Local opcode: %X", | 443 | "Not a Arg/Local opcode: 0x%X", |
444 | type)); | 444 | type)); |
445 | return_ACPI_STATUS(AE_AML_INTERNAL); | 445 | return_ACPI_STATUS(AE_AML_INTERNAL); |
446 | } | 446 | } |
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; |
diff --git a/drivers/acpi/acpica/dsopcode.c b/drivers/acpi/acpica/dsopcode.c index bf980cadb1e8..53a7e416f33e 100644 --- a/drivers/acpi/acpica/dsopcode.c +++ b/drivers/acpi/acpica/dsopcode.c | |||
@@ -292,7 +292,7 @@ acpi_status acpi_ds_get_buffer_arguments(union acpi_operand_object *obj_desc) | |||
292 | node = obj_desc->buffer.node; | 292 | node = obj_desc->buffer.node; |
293 | if (!node) { | 293 | if (!node) { |
294 | ACPI_ERROR((AE_INFO, | 294 | ACPI_ERROR((AE_INFO, |
295 | "No pointer back to NS node in buffer obj %p", | 295 | "No pointer back to namespace node in buffer object %p", |
296 | obj_desc)); | 296 | obj_desc)); |
297 | return_ACPI_STATUS(AE_AML_INTERNAL); | 297 | return_ACPI_STATUS(AE_AML_INTERNAL); |
298 | } | 298 | } |
@@ -336,7 +336,7 @@ acpi_status acpi_ds_get_package_arguments(union acpi_operand_object *obj_desc) | |||
336 | node = obj_desc->package.node; | 336 | node = obj_desc->package.node; |
337 | if (!node) { | 337 | if (!node) { |
338 | ACPI_ERROR((AE_INFO, | 338 | ACPI_ERROR((AE_INFO, |
339 | "No pointer back to NS node in package %p", | 339 | "No pointer back to namespace node in package %p", |
340 | obj_desc)); | 340 | obj_desc)); |
341 | return_ACPI_STATUS(AE_AML_INTERNAL); | 341 | return_ACPI_STATUS(AE_AML_INTERNAL); |
342 | } | 342 | } |
@@ -580,7 +580,8 @@ acpi_ds_init_buffer_field(u16 aml_opcode, | |||
580 | default: | 580 | default: |
581 | 581 | ||
582 | ACPI_ERROR((AE_INFO, | 582 | ACPI_ERROR((AE_INFO, |
583 | "Unknown field creation opcode %02x", aml_opcode)); | 583 | "Unknown field creation opcode 0x%02X", |
584 | aml_opcode)); | ||
584 | status = AE_AML_BAD_OPCODE; | 585 | status = AE_AML_BAD_OPCODE; |
585 | goto cleanup; | 586 | goto cleanup; |
586 | } | 587 | } |
@@ -589,7 +590,7 @@ acpi_ds_init_buffer_field(u16 aml_opcode, | |||
589 | 590 | ||
590 | if ((bit_offset + bit_count) > (8 * (u32) buffer_desc->buffer.length)) { | 591 | if ((bit_offset + bit_count) > (8 * (u32) buffer_desc->buffer.length)) { |
591 | ACPI_ERROR((AE_INFO, | 592 | ACPI_ERROR((AE_INFO, |
592 | "Field [%4.4s] at %d exceeds Buffer [%4.4s] size %d (bits)", | 593 | "Field [%4.4s] at %u exceeds Buffer [%4.4s] size %u (bits)", |
593 | acpi_ut_get_node_name(result_desc), | 594 | acpi_ut_get_node_name(result_desc), |
594 | bit_offset + bit_count, | 595 | bit_offset + bit_count, |
595 | acpi_ut_get_node_name(buffer_desc->buffer.node), | 596 | acpi_ut_get_node_name(buffer_desc->buffer.node), |
@@ -693,7 +694,7 @@ acpi_ds_eval_buffer_field_operands(struct acpi_walk_state *walk_state, | |||
693 | status = acpi_ex_resolve_operands(op->common.aml_opcode, | 694 | status = acpi_ex_resolve_operands(op->common.aml_opcode, |
694 | ACPI_WALK_OPERANDS, walk_state); | 695 | ACPI_WALK_OPERANDS, walk_state); |
695 | if (ACPI_FAILURE(status)) { | 696 | if (ACPI_FAILURE(status)) { |
696 | ACPI_ERROR((AE_INFO, "(%s) bad operand(s) (%X)", | 697 | ACPI_ERROR((AE_INFO, "(%s) bad operand(s), status 0x%X", |
697 | acpi_ps_get_opcode_name(op->common.aml_opcode), | 698 | acpi_ps_get_opcode_name(op->common.aml_opcode), |
698 | status)); | 699 | status)); |
699 | 700 | ||
@@ -1461,7 +1462,7 @@ acpi_ds_exec_end_control_op(struct acpi_walk_state * walk_state, | |||
1461 | 1462 | ||
1462 | default: | 1463 | default: |
1463 | 1464 | ||
1464 | ACPI_ERROR((AE_INFO, "Unknown control opcode=%X Op=%p", | 1465 | ACPI_ERROR((AE_INFO, "Unknown control opcode=0x%X Op=%p", |
1465 | op->common.aml_opcode, op)); | 1466 | op->common.aml_opcode, op)); |
1466 | 1467 | ||
1467 | status = AE_AML_BAD_OPCODE; | 1468 | status = AE_AML_BAD_OPCODE; |
diff --git a/drivers/acpi/acpica/dswexec.c b/drivers/acpi/acpica/dswexec.c index 6b76c486d784..d555b374e314 100644 --- a/drivers/acpi/acpica/dswexec.c +++ b/drivers/acpi/acpica/dswexec.c | |||
@@ -140,7 +140,7 @@ acpi_ds_get_predicate_value(struct acpi_walk_state *walk_state, | |||
140 | 140 | ||
141 | if (local_obj_desc->common.type != ACPI_TYPE_INTEGER) { | 141 | if (local_obj_desc->common.type != ACPI_TYPE_INTEGER) { |
142 | ACPI_ERROR((AE_INFO, | 142 | ACPI_ERROR((AE_INFO, |
143 | "Bad predicate (not an integer) ObjDesc=%p State=%p Type=%X", | 143 | "Bad predicate (not an integer) ObjDesc=%p State=%p Type=0x%X", |
144 | obj_desc, walk_state, obj_desc->common.type)); | 144 | obj_desc, walk_state, obj_desc->common.type)); |
145 | 145 | ||
146 | status = AE_AML_OPERAND_TYPE; | 146 | status = AE_AML_OPERAND_TYPE; |
@@ -354,7 +354,7 @@ acpi_status acpi_ds_exec_end_op(struct acpi_walk_state *walk_state) | |||
354 | op_class = walk_state->op_info->class; | 354 | op_class = walk_state->op_info->class; |
355 | 355 | ||
356 | if (op_class == AML_CLASS_UNKNOWN) { | 356 | if (op_class == AML_CLASS_UNKNOWN) { |
357 | ACPI_ERROR((AE_INFO, "Unknown opcode %X", | 357 | ACPI_ERROR((AE_INFO, "Unknown opcode 0x%X", |
358 | op->common.aml_opcode)); | 358 | op->common.aml_opcode)); |
359 | return_ACPI_STATUS(AE_NOT_IMPLEMENTED); | 359 | return_ACPI_STATUS(AE_NOT_IMPLEMENTED); |
360 | } | 360 | } |
@@ -678,7 +678,7 @@ acpi_status acpi_ds_exec_end_op(struct acpi_walk_state *walk_state) | |||
678 | default: | 678 | default: |
679 | 679 | ||
680 | ACPI_ERROR((AE_INFO, | 680 | ACPI_ERROR((AE_INFO, |
681 | "Unimplemented opcode, class=%X type=%X Opcode=%X Op=%p", | 681 | "Unimplemented opcode, class=0x%X type=0x%X Opcode=-0x%X Op=%p", |
682 | op_class, op_type, op->common.aml_opcode, | 682 | op_class, op_type, op->common.aml_opcode, |
683 | op)); | 683 | op)); |
684 | 684 | ||
diff --git a/drivers/acpi/acpica/dswstate.c b/drivers/acpi/acpica/dswstate.c index 050df8164165..83155dd8671e 100644 --- a/drivers/acpi/acpica/dswstate.c +++ b/drivers/acpi/acpica/dswstate.c | |||
@@ -179,7 +179,7 @@ acpi_ds_result_push(union acpi_operand_object * object, | |||
179 | 179 | ||
180 | if (!object) { | 180 | if (!object) { |
181 | ACPI_ERROR((AE_INFO, | 181 | ACPI_ERROR((AE_INFO, |
182 | "Null Object! Obj=%p State=%p Num=%X", | 182 | "Null Object! Obj=%p State=%p Num=%u", |
183 | object, walk_state, walk_state->result_count)); | 183 | object, walk_state, walk_state->result_count)); |
184 | return (AE_BAD_PARAMETER); | 184 | return (AE_BAD_PARAMETER); |
185 | } | 185 | } |
@@ -223,7 +223,7 @@ static acpi_status acpi_ds_result_stack_push(struct acpi_walk_state *walk_state) | |||
223 | 223 | ||
224 | if (((u32) walk_state->result_size + ACPI_RESULTS_FRAME_OBJ_NUM) > | 224 | if (((u32) walk_state->result_size + ACPI_RESULTS_FRAME_OBJ_NUM) > |
225 | ACPI_RESULTS_OBJ_NUM_MAX) { | 225 | ACPI_RESULTS_OBJ_NUM_MAX) { |
226 | ACPI_ERROR((AE_INFO, "Result stack overflow: State=%p Num=%X", | 226 | ACPI_ERROR((AE_INFO, "Result stack overflow: State=%p Num=%u", |
227 | walk_state, walk_state->result_size)); | 227 | walk_state, walk_state->result_size)); |
228 | return (AE_STACK_OVERFLOW); | 228 | return (AE_STACK_OVERFLOW); |
229 | } | 229 | } |
@@ -314,7 +314,7 @@ acpi_ds_obj_stack_push(void *object, struct acpi_walk_state * walk_state) | |||
314 | 314 | ||
315 | if (walk_state->num_operands >= ACPI_OBJ_NUM_OPERANDS) { | 315 | if (walk_state->num_operands >= ACPI_OBJ_NUM_OPERANDS) { |
316 | ACPI_ERROR((AE_INFO, | 316 | ACPI_ERROR((AE_INFO, |
317 | "Object stack overflow! Obj=%p State=%p #Ops=%X", | 317 | "Object stack overflow! Obj=%p State=%p #Ops=%u", |
318 | object, walk_state, walk_state->num_operands)); | 318 | object, walk_state, walk_state->num_operands)); |
319 | return (AE_STACK_OVERFLOW); | 319 | return (AE_STACK_OVERFLOW); |
320 | } | 320 | } |
@@ -365,7 +365,7 @@ acpi_ds_obj_stack_pop(u32 pop_count, struct acpi_walk_state * walk_state) | |||
365 | 365 | ||
366 | if (walk_state->num_operands == 0) { | 366 | if (walk_state->num_operands == 0) { |
367 | ACPI_ERROR((AE_INFO, | 367 | ACPI_ERROR((AE_INFO, |
368 | "Object stack underflow! Count=%X State=%p #Ops=%X", | 368 | "Object stack underflow! Count=%X State=%p #Ops=%u", |
369 | pop_count, walk_state, | 369 | pop_count, walk_state, |
370 | walk_state->num_operands)); | 370 | walk_state->num_operands)); |
371 | return (AE_STACK_UNDERFLOW); | 371 | return (AE_STACK_UNDERFLOW); |
@@ -377,7 +377,7 @@ acpi_ds_obj_stack_pop(u32 pop_count, struct acpi_walk_state * walk_state) | |||
377 | walk_state->operands[walk_state->num_operands] = NULL; | 377 | walk_state->operands[walk_state->num_operands] = NULL; |
378 | } | 378 | } |
379 | 379 | ||
380 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "Count=%X State=%p #Ops=%X\n", | 380 | ACPI_DEBUG_PRINT((ACPI_DB_EXEC, "Count=%X State=%p #Ops=%u\n", |
381 | pop_count, walk_state, walk_state->num_operands)); | 381 | pop_count, walk_state, walk_state->num_operands)); |
382 | 382 | ||
383 | return (AE_OK); | 383 | return (AE_OK); |
diff --git a/drivers/acpi/acpica/evevent.c b/drivers/acpi/acpica/evevent.c index c1e6f472d435..f5795915a2e9 100644 --- a/drivers/acpi/acpica/evevent.c +++ b/drivers/acpi/acpica/evevent.c | |||
@@ -302,7 +302,7 @@ static u32 acpi_ev_fixed_event_dispatch(u32 event) | |||
302 | ACPI_DISABLE_EVENT); | 302 | ACPI_DISABLE_EVENT); |
303 | 303 | ||
304 | ACPI_ERROR((AE_INFO, | 304 | ACPI_ERROR((AE_INFO, |
305 | "No installed handler for fixed event [%08X]", | 305 | "No installed handler for fixed event [0x%08X]", |
306 | event)); | 306 | event)); |
307 | 307 | ||
308 | return (ACPI_INTERRUPT_NOT_HANDLED); | 308 | return (ACPI_INTERRUPT_NOT_HANDLED); |
diff --git a/drivers/acpi/acpica/evgpe.c b/drivers/acpi/acpica/evgpe.c index 78c55508aff5..b9d50ef9f3ec 100644 --- a/drivers/acpi/acpica/evgpe.c +++ b/drivers/acpi/acpica/evgpe.c | |||
@@ -499,7 +499,7 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
499 | status = acpi_hw_clear_gpe(gpe_event_info); | 499 | status = acpi_hw_clear_gpe(gpe_event_info); |
500 | if (ACPI_FAILURE(status)) { | 500 | if (ACPI_FAILURE(status)) { |
501 | ACPI_EXCEPTION((AE_INFO, status, | 501 | ACPI_EXCEPTION((AE_INFO, status, |
502 | "Unable to clear GPE[%2X]", | 502 | "Unable to clear GPE[0x%2X]", |
503 | gpe_number)); | 503 | gpe_number)); |
504 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); | 504 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); |
505 | } | 505 | } |
@@ -532,7 +532,7 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
532 | status = acpi_hw_clear_gpe(gpe_event_info); | 532 | status = acpi_hw_clear_gpe(gpe_event_info); |
533 | if (ACPI_FAILURE(status)) { | 533 | if (ACPI_FAILURE(status)) { |
534 | ACPI_EXCEPTION((AE_INFO, status, | 534 | ACPI_EXCEPTION((AE_INFO, status, |
535 | "Unable to clear GPE[%2X]", | 535 | "Unable to clear GPE[0x%2X]", |
536 | gpe_number)); | 536 | gpe_number)); |
537 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); | 537 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); |
538 | } | 538 | } |
@@ -548,7 +548,7 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
548 | status = acpi_ev_disable_gpe(gpe_event_info); | 548 | status = acpi_ev_disable_gpe(gpe_event_info); |
549 | if (ACPI_FAILURE(status)) { | 549 | if (ACPI_FAILURE(status)) { |
550 | ACPI_EXCEPTION((AE_INFO, status, | 550 | ACPI_EXCEPTION((AE_INFO, status, |
551 | "Unable to disable GPE[%2X]", | 551 | "Unable to disable GPE[0x%2X]", |
552 | gpe_number)); | 552 | gpe_number)); |
553 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); | 553 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); |
554 | } | 554 | } |
@@ -562,7 +562,7 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
562 | gpe_event_info); | 562 | gpe_event_info); |
563 | if (ACPI_FAILURE(status)) { | 563 | if (ACPI_FAILURE(status)) { |
564 | ACPI_EXCEPTION((AE_INFO, status, | 564 | ACPI_EXCEPTION((AE_INFO, status, |
565 | "Unable to queue handler for GPE[%2X] - event disabled", | 565 | "Unable to queue handler for GPE[0x%2X] - event disabled", |
566 | gpe_number)); | 566 | gpe_number)); |
567 | } | 567 | } |
568 | break; | 568 | break; |
@@ -572,7 +572,7 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
572 | /* No handler or method to run! */ | 572 | /* No handler or method to run! */ |
573 | 573 | ||
574 | ACPI_ERROR((AE_INFO, | 574 | ACPI_ERROR((AE_INFO, |
575 | "No handler or method for GPE[%2X], disabling event", | 575 | "No handler or method for GPE[0x%2X], disabling event", |
576 | gpe_number)); | 576 | gpe_number)); |
577 | 577 | ||
578 | /* | 578 | /* |
@@ -582,7 +582,7 @@ acpi_ev_gpe_dispatch(struct acpi_gpe_event_info *gpe_event_info, u32 gpe_number) | |||
582 | status = acpi_ev_disable_gpe(gpe_event_info); | 582 | status = acpi_ev_disable_gpe(gpe_event_info); |
583 | if (ACPI_FAILURE(status)) { | 583 | if (ACPI_FAILURE(status)) { |
584 | ACPI_EXCEPTION((AE_INFO, status, | 584 | ACPI_EXCEPTION((AE_INFO, status, |
585 | "Unable to disable GPE[%2X]", | 585 | "Unable to disable GPE[0x%2X]", |
586 | gpe_number)); | 586 | gpe_number)); |
587 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); | 587 | return_UINT32(ACPI_INTERRUPT_NOT_HANDLED); |
588 | } | 588 | } |
diff --git a/drivers/acpi/acpica/evgpeblk.c b/drivers/acpi/acpica/evgpeblk.c index fef721917eaf..fa47e3522abe 100644 --- a/drivers/acpi/acpica/evgpeblk.c +++ b/drivers/acpi/acpica/evgpeblk.c | |||
@@ -1139,8 +1139,8 @@ acpi_status acpi_ev_gpe_initialize(void) | |||
1139 | if ((register_count0) && | 1139 | if ((register_count0) && |
1140 | (gpe_number_max >= acpi_gbl_FADT.gpe1_base)) { | 1140 | (gpe_number_max >= acpi_gbl_FADT.gpe1_base)) { |
1141 | ACPI_ERROR((AE_INFO, | 1141 | ACPI_ERROR((AE_INFO, |
1142 | "GPE0 block (GPE 0 to %d) overlaps the GPE1 block " | 1142 | "GPE0 block (GPE 0 to %u) overlaps the GPE1 block " |
1143 | "(GPE %d to %d) - Ignoring GPE1", | 1143 | "(GPE %u to %u) - Ignoring GPE1", |
1144 | gpe_number_max, acpi_gbl_FADT.gpe1_base, | 1144 | gpe_number_max, acpi_gbl_FADT.gpe1_base, |
1145 | acpi_gbl_FADT.gpe1_base + | 1145 | acpi_gbl_FADT.gpe1_base + |
1146 | ((register_count1 * | 1146 | ((register_count1 * |
diff --git a/drivers/acpi/acpica/evmisc.c b/drivers/acpi/acpica/evmisc.c index 9a3cb7045a32..df0aea9a8cfd 100644 --- a/drivers/acpi/acpica/evmisc.c +++ b/drivers/acpi/acpica/evmisc.c | |||
@@ -590,7 +590,7 @@ void acpi_ev_terminate(void) | |||
590 | status = acpi_disable_event(i, 0); | 590 | status = acpi_disable_event(i, 0); |
591 | if (ACPI_FAILURE(status)) { | 591 | if (ACPI_FAILURE(status)) { |
592 | ACPI_ERROR((AE_INFO, | 592 | ACPI_ERROR((AE_INFO, |
593 | "Could not disable fixed event %d", | 593 | "Could not disable fixed event %u", |
594 | (u32) i)); | 594 | (u32) i)); |
595 | } | 595 | } |
596 | } | 596 | } |
diff --git a/drivers/acpi/acpica/evxface.c b/drivers/acpi/acpica/evxface.c index b40757955f9b..ca048233d8d3 100644 --- a/drivers/acpi/acpica/evxface.c +++ b/drivers/acpi/acpica/evxface.c | |||
@@ -142,7 +142,7 @@ acpi_install_fixed_event_handler(u32 event, | |||
142 | if (ACPI_SUCCESS(status)) | 142 | if (ACPI_SUCCESS(status)) |
143 | status = acpi_enable_event(event, 0); | 143 | status = acpi_enable_event(event, 0); |
144 | if (ACPI_FAILURE(status)) { | 144 | if (ACPI_FAILURE(status)) { |
145 | ACPI_WARNING((AE_INFO, "Could not enable fixed event %X", | 145 | ACPI_WARNING((AE_INFO, "Could not enable fixed event 0x%X", |
146 | event)); | 146 | event)); |
147 | 147 | ||
148 | /* Remove the handler */ | 148 | /* Remove the handler */ |
@@ -203,7 +203,7 @@ acpi_remove_fixed_event_handler(u32 event, acpi_event_handler handler) | |||
203 | 203 | ||
204 | if (ACPI_FAILURE(status)) { | 204 | if (ACPI_FAILURE(status)) { |
205 | ACPI_WARNING((AE_INFO, | 205 | ACPI_WARNING((AE_INFO, |
206 | "Could not write to fixed event enable register %X", | 206 | "Could not write to fixed event enable register 0x%X", |
207 | event)); | 207 | event)); |
208 | } else { | 208 | } else { |
209 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Disabled fixed event %X\n", | 209 | ACPI_DEBUG_PRINT((ACPI_DB_INFO, "Disabled fixed event %X\n", |
diff --git a/drivers/acpi/acpica/exconvrt.c b/drivers/acpi/acpica/exconvrt.c index bda7aed0404b..b73bc50c5b76 100644 --- a/drivers/acpi/acpica/exconvrt.c +++ b/drivers/acpi/acpica/exconvrt.c | |||
@@ -650,7 +650,7 @@ acpi_ex_convert_to_target_type(acpi_object_type destination_type, | |||
650 | 650 | ||
651 | default: | 651 | default: |
652 | ACPI_ERROR((AE_INFO, | 652 | ACPI_ERROR((AE_INFO, |
653 | "Bad destination type during conversion: %X", | 653 | "Bad destination type during conversion: 0x%X", |
654 | destination_type)); | 654 | destination_type)); |
655 | status = AE_AML_INTERNAL; | 655 | status = AE_AML_INTERNAL; |
656 | break; | 656 | break; |
@@ -665,7 +665,7 @@ acpi_ex_convert_to_target_type(acpi_object_type destination_type, | |||
665 | 665 | ||
666 | default: | 666 | default: |
667 | ACPI_ERROR((AE_INFO, | 667 | ACPI_ERROR((AE_INFO, |
668 | "Unknown Target type ID 0x%X AmlOpcode %X DestType %s", | 668 | "Unknown Target type ID 0x%X AmlOpcode 0x%X DestType %s", |
669 | GET_CURRENT_ARG_TYPE(walk_state->op_info-> | 669 | GET_CURRENT_ARG_TYPE(walk_state->op_info-> |
670 | runtime_args), | 670 | runtime_args), |
671 | walk_state->opcode, | 671 | walk_state->opcode, |
diff --git a/drivers/acpi/acpica/excreate.c b/drivers/acpi/acpica/excreate.c index 0aa57d938698..3c61b48c73f5 100644 --- a/drivers/acpi/acpica/excreate.c +++ b/drivers/acpi/acpica/excreate.c | |||
@@ -306,12 +306,12 @@ acpi_ex_create_region(u8 * aml_start, | |||
306 | */ | 306 | */ |
307 | if ((region_space >= ACPI_NUM_PREDEFINED_REGIONS) && | 307 | if ((region_space >= ACPI_NUM_PREDEFINED_REGIONS) && |
308 | (region_space < ACPI_USER_REGION_BEGIN)) { | 308 | (region_space < ACPI_USER_REGION_BEGIN)) { |
309 | ACPI_ERROR((AE_INFO, "Invalid AddressSpace type %X", | 309 | ACPI_ERROR((AE_INFO, "Invalid AddressSpace type 0x%X", |
310 | region_space)); | 310 | region_space)); |
311 | return_ACPI_STATUS(AE_AML_INVALID_SPACE_ID); | 311 | return_ACPI_STATUS(AE_AML_INVALID_SPACE_ID); |
312 | } | 312 | } |
313 | 313 | ||
314 | ACPI_DEBUG_PRINT((ACPI_DB_LOAD, "Region Type - %s (%X)\n", | 314 | ACPI_DEBUG_PRINT((ACPI_DB_LOAD, "Region Type - %s (0x%X)\n", |
315 | acpi_ut_get_region_name(region_space), region_space)); | 315 | acpi_ut_get_region_name(region_space), region_space)); |
316 | 316 | ||
317 | /* Create the region descriptor */ | 317 | /* Create the region descriptor */ |
diff --git a/drivers/acpi/acpica/exfield.c b/drivers/acpi/acpica/exfield.c index 6c79fecbee42..f17d2ff0031b 100644 --- a/drivers/acpi/acpica/exfield.c +++ b/drivers/acpi/acpica/exfield.c | |||
@@ -281,7 +281,7 @@ acpi_ex_write_data_to_field(union acpi_operand_object *source_desc, | |||
281 | 281 | ||
282 | if (source_desc->buffer.length < length) { | 282 | if (source_desc->buffer.length < length) { |
283 | ACPI_ERROR((AE_INFO, | 283 | ACPI_ERROR((AE_INFO, |
284 | "SMBus or IPMI write requires Buffer of length %X, found length %X", | 284 | "SMBus or IPMI write requires Buffer of length %u, found length %u", |
285 | length, source_desc->buffer.length)); | 285 | length, source_desc->buffer.length)); |
286 | 286 | ||
287 | return_ACPI_STATUS(AE_AML_BUFFER_LIMIT); | 287 | return_ACPI_STATUS(AE_AML_BUFFER_LIMIT); |
diff --git a/drivers/acpi/acpica/exfldio.c b/drivers/acpi/acpica/exfldio.c index f68a216168be..a6dc26f0b3be 100644 --- a/drivers/acpi/acpica/exfldio.c +++ b/drivers/acpi/acpica/exfldio.c | |||
@@ -94,7 +94,7 @@ acpi_ex_setup_region(union acpi_operand_object *obj_desc, | |||
94 | /* We must have a valid region */ | 94 | /* We must have a valid region */ |
95 | 95 | ||
96 | if (rgn_desc->common.type != ACPI_TYPE_REGION) { | 96 | if (rgn_desc->common.type != ACPI_TYPE_REGION) { |
97 | ACPI_ERROR((AE_INFO, "Needed Region, found type %X (%s)", | 97 | ACPI_ERROR((AE_INFO, "Needed Region, found type 0x%X (%s)", |
98 | rgn_desc->common.type, | 98 | rgn_desc->common.type, |
99 | acpi_ut_get_object_type_name(rgn_desc))); | 99 | acpi_ut_get_object_type_name(rgn_desc))); |
100 | 100 | ||
@@ -175,7 +175,7 @@ acpi_ex_setup_region(union acpi_operand_object *obj_desc, | |||
175 | * byte, and a field with Dword access specified. | 175 | * byte, and a field with Dword access specified. |
176 | */ | 176 | */ |
177 | ACPI_ERROR((AE_INFO, | 177 | ACPI_ERROR((AE_INFO, |
178 | "Field [%4.4s] access width (%d bytes) too large for region [%4.4s] (length %X)", | 178 | "Field [%4.4s] access width (%u bytes) too large for region [%4.4s] (length %u)", |
179 | acpi_ut_get_node_name(obj_desc-> | 179 | acpi_ut_get_node_name(obj_desc-> |
180 | common_field.node), | 180 | common_field.node), |
181 | obj_desc->common_field.access_byte_width, | 181 | obj_desc->common_field.access_byte_width, |
@@ -189,7 +189,7 @@ acpi_ex_setup_region(union acpi_operand_object *obj_desc, | |||
189 | * exceeds region length, indicate an error | 189 | * exceeds region length, indicate an error |
190 | */ | 190 | */ |
191 | ACPI_ERROR((AE_INFO, | 191 | ACPI_ERROR((AE_INFO, |
192 | "Field [%4.4s] Base+Offset+Width %X+%X+%X is beyond end of region [%4.4s] (length %X)", | 192 | "Field [%4.4s] Base+Offset+Width %u+%u+%u is beyond end of region [%4.4s] (length %u)", |
193 | acpi_ut_get_node_name(obj_desc->common_field.node), | 193 | acpi_ut_get_node_name(obj_desc->common_field.node), |
194 | obj_desc->common_field.base_byte_offset, | 194 | obj_desc->common_field.base_byte_offset, |
195 | field_datum_byte_offset, | 195 | field_datum_byte_offset, |
@@ -281,13 +281,13 @@ acpi_ex_access_region(union acpi_operand_object *obj_desc, | |||
281 | if (ACPI_FAILURE(status)) { | 281 | if (ACPI_FAILURE(status)) { |
282 | if (status == AE_NOT_IMPLEMENTED) { | 282 | if (status == AE_NOT_IMPLEMENTED) { |
283 | ACPI_ERROR((AE_INFO, | 283 | ACPI_ERROR((AE_INFO, |
284 | "Region %s(%X) not implemented", | 284 | "Region %s(0x%X) not implemented", |
285 | acpi_ut_get_region_name(rgn_desc->region. | 285 | acpi_ut_get_region_name(rgn_desc->region. |
286 | space_id), | 286 | space_id), |
287 | rgn_desc->region.space_id)); | 287 | rgn_desc->region.space_id)); |
288 | } else if (status == AE_NOT_EXIST) { | 288 | } else if (status == AE_NOT_EXIST) { |
289 | ACPI_ERROR((AE_INFO, | 289 | ACPI_ERROR((AE_INFO, |
290 | "Region %s(%X) has no handler", | 290 | "Region %s(0x%X) has no handler", |
291 | acpi_ut_get_region_name(rgn_desc->region. | 291 | acpi_ut_get_region_name(rgn_desc->region. |
292 | space_id), | 292 | space_id), |
293 | rgn_desc->region.space_id)); | 293 | rgn_desc->region.space_id)); |
@@ -525,7 +525,7 @@ acpi_ex_field_datum_io(union acpi_operand_object *obj_desc, | |||
525 | 525 | ||
526 | default: | 526 | default: |
527 | 527 | ||
528 | ACPI_ERROR((AE_INFO, "Wrong object type in field I/O %X", | 528 | ACPI_ERROR((AE_INFO, "Wrong object type in field I/O %u", |
529 | obj_desc->common.type)); | 529 | obj_desc->common.type)); |
530 | status = AE_AML_INTERNAL; | 530 | status = AE_AML_INTERNAL; |
531 | break; | 531 | break; |
@@ -630,7 +630,7 @@ acpi_ex_write_with_update_rule(union acpi_operand_object *obj_desc, | |||
630 | default: | 630 | default: |
631 | 631 | ||
632 | ACPI_ERROR((AE_INFO, | 632 | ACPI_ERROR((AE_INFO, |
633 | "Unknown UpdateRule value: %X", | 633 | "Unknown UpdateRule value: 0x%X", |
634 | (obj_desc->common_field. | 634 | (obj_desc->common_field. |
635 | field_flags & | 635 | field_flags & |
636 | AML_FIELD_UPDATE_RULE_MASK))); | 636 | AML_FIELD_UPDATE_RULE_MASK))); |
@@ -689,7 +689,7 @@ acpi_ex_extract_from_field(union acpi_operand_object *obj_desc, | |||
689 | if (buffer_length < | 689 | if (buffer_length < |
690 | ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->common_field.bit_length)) { | 690 | ACPI_ROUND_BITS_UP_TO_BYTES(obj_desc->common_field.bit_length)) { |
691 | ACPI_ERROR((AE_INFO, | 691 | ACPI_ERROR((AE_INFO, |
692 | "Field size %X (bits) is too large for buffer (%X)", | 692 | "Field size %u (bits) is too large for buffer (%u)", |
693 | obj_desc->common_field.bit_length, buffer_length)); | 693 | obj_desc->common_field.bit_length, buffer_length)); |
694 | 694 | ||
695 | return_ACPI_STATUS(AE_BUFFER_OVERFLOW); | 695 | return_ACPI_STATUS(AE_BUFFER_OVERFLOW); |
diff --git a/drivers/acpi/acpica/exmisc.c b/drivers/acpi/acpica/exmisc.c index c5bb1eeed2df..95db4be0877b 100644 --- a/drivers/acpi/acpica/exmisc.c +++ b/drivers/acpi/acpica/exmisc.c | |||
@@ -99,7 +99,7 @@ acpi_ex_get_object_reference(union acpi_operand_object *obj_desc, | |||
99 | 99 | ||
100 | default: | 100 | default: |
101 | 101 | ||
102 | ACPI_ERROR((AE_INFO, "Unknown Reference Class %2.2X", | 102 | ACPI_ERROR((AE_INFO, "Unknown Reference Class 0x%2.2X", |
103 | obj_desc->reference.class)); | 103 | obj_desc->reference.class)); |
104 | return_ACPI_STATUS(AE_AML_INTERNAL); | 104 | return_ACPI_STATUS(AE_AML_INTERNAL); |
105 | } | 105 | } |
@@ -115,7 +115,7 @@ acpi_ex_get_object_reference(union acpi_operand_object *obj_desc, | |||
115 | 115 | ||
116 | default: | 116 | default: |
117 | 117 | ||
118 | ACPI_ERROR((AE_INFO, "Invalid descriptor type %X", | 118 | ACPI_ERROR((AE_INFO, "Invalid descriptor type 0x%X", |
119 | ACPI_GET_DESCRIPTOR_TYPE(obj_desc))); | 119 | ACPI_GET_DESCRIPTOR_TYPE(obj_desc))); |
120 | return_ACPI_STATUS(AE_TYPE); | 120 | return_ACPI_STATUS(AE_TYPE); |
121 | } | 121 | } |
@@ -276,7 +276,7 @@ acpi_ex_do_concatenate(union acpi_operand_object *operand0, | |||
276 | break; | 276 | break; |
277 | 277 | ||
278 | default: | 278 | default: |
279 | ACPI_ERROR((AE_INFO, "Invalid object type: %X", | 279 | ACPI_ERROR((AE_INFO, "Invalid object type: 0x%X", |
280 | operand0->common.type)); | 280 | operand0->common.type)); |
281 | status = AE_AML_INTERNAL; | 281 | status = AE_AML_INTERNAL; |
282 | } | 282 | } |
@@ -378,7 +378,7 @@ acpi_ex_do_concatenate(union acpi_operand_object *operand0, | |||
378 | 378 | ||
379 | /* Invalid object type, should not happen here */ | 379 | /* Invalid object type, should not happen here */ |
380 | 380 | ||
381 | ACPI_ERROR((AE_INFO, "Invalid object type: %X", | 381 | ACPI_ERROR((AE_INFO, "Invalid object type: 0x%X", |
382 | operand0->common.type)); | 382 | operand0->common.type)); |
383 | status = AE_AML_INTERNAL; | 383 | status = AE_AML_INTERNAL; |
384 | goto cleanup; | 384 | goto cleanup; |
diff --git a/drivers/acpi/acpica/exmutex.c b/drivers/acpi/acpica/exmutex.c index 7116bc86494d..2b0d722c984f 100644 --- a/drivers/acpi/acpica/exmutex.c +++ b/drivers/acpi/acpica/exmutex.c | |||
@@ -249,7 +249,7 @@ acpi_ex_acquire_mutex(union acpi_operand_object *time_desc, | |||
249 | */ | 249 | */ |
250 | if (walk_state->thread->current_sync_level > obj_desc->mutex.sync_level) { | 250 | if (walk_state->thread->current_sync_level > obj_desc->mutex.sync_level) { |
251 | ACPI_ERROR((AE_INFO, | 251 | ACPI_ERROR((AE_INFO, |
252 | "Cannot acquire Mutex [%4.4s], current SyncLevel is too large (%d)", | 252 | "Cannot acquire Mutex [%4.4s], current SyncLevel is too large (%u)", |
253 | acpi_ut_get_node_name(obj_desc->mutex.node), | 253 | acpi_ut_get_node_name(obj_desc->mutex.node), |
254 | walk_state->thread->current_sync_level)); | 254 | walk_state->thread->current_sync_level)); |
255 | return_ACPI_STATUS(AE_AML_MUTEX_ORDER); | 255 | return_ACPI_STATUS(AE_AML_MUTEX_ORDER); |
@@ -410,7 +410,7 @@ acpi_ex_release_mutex(union acpi_operand_object *obj_desc, | |||
410 | if (obj_desc->mutex.sync_level != | 410 | if (obj_desc->mutex.sync_level != |
411 | walk_state->thread->current_sync_level) { | 411 | walk_state->thread->current_sync_level) { |
412 | ACPI_ERROR((AE_INFO, | 412 | ACPI_ERROR((AE_INFO, |
413 | "Cannot release Mutex [%4.4s], SyncLevel mismatch: mutex %d current %d", | 413 | "Cannot release Mutex [%4.4s], SyncLevel mismatch: mutex %u current %u", |
414 | acpi_ut_get_node_name(obj_desc->mutex.node), | 414 | acpi_ut_get_node_name(obj_desc->mutex.node), |
415 | obj_desc->mutex.sync_level, | 415 | obj_desc->mutex.sync_level, |
416 | walk_state->thread->current_sync_level)); | 416 | walk_state->thread->current_sync_level)); |
diff --git a/drivers/acpi/acpica/exnames.c b/drivers/acpi/acpica/exnames.c index 679f308c5a89..d11e539ef763 100644 --- a/drivers/acpi/acpica/exnames.c +++ b/drivers/acpi/acpica/exnames.c | |||
@@ -102,7 +102,7 @@ static char *acpi_ex_allocate_name_string(u32 prefix_count, u32 num_name_segs) | |||
102 | name_string = ACPI_ALLOCATE(size_needed); | 102 | name_string = ACPI_ALLOCATE(size_needed); |
103 | if (!name_string) { | 103 | if (!name_string) { |
104 | ACPI_ERROR((AE_INFO, | 104 | ACPI_ERROR((AE_INFO, |
105 | "Could not allocate size %d", size_needed)); | 105 | "Could not allocate size %u", size_needed)); |
106 | return_PTR(NULL); | 106 | return_PTR(NULL); |
107 | } | 107 | } |
108 | 108 | ||
@@ -216,7 +216,7 @@ static acpi_status acpi_ex_name_segment(u8 ** in_aml_address, char *name_string) | |||
216 | */ | 216 | */ |
217 | status = AE_AML_BAD_NAME; | 217 | status = AE_AML_BAD_NAME; |
218 | ACPI_ERROR((AE_INFO, | 218 | ACPI_ERROR((AE_INFO, |
219 | "Bad character %02x in name, at %p", | 219 | "Bad character 0x%02x in name, at %p", |
220 | *aml_address, aml_address)); | 220 | *aml_address, aml_address)); |
221 | } | 221 | } |
222 | 222 | ||
diff --git a/drivers/acpi/acpica/exoparg1.c b/drivers/acpi/acpica/exoparg1.c index 99adbab5acbf..38e0f3c1f1d7 100644 --- a/drivers/acpi/acpica/exoparg1.c +++ b/drivers/acpi/acpica/exoparg1.c | |||
@@ -110,7 +110,7 @@ acpi_status acpi_ex_opcode_0A_0T_1R(struct acpi_walk_state *walk_state) | |||
110 | 110 | ||
111 | default: /* Unknown opcode */ | 111 | default: /* Unknown opcode */ |
112 | 112 | ||
113 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 113 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
114 | walk_state->opcode)); | 114 | walk_state->opcode)); |
115 | status = AE_AML_BAD_OPCODE; | 115 | status = AE_AML_BAD_OPCODE; |
116 | break; | 116 | break; |
@@ -189,7 +189,7 @@ acpi_status acpi_ex_opcode_1A_0T_0R(struct acpi_walk_state *walk_state) | |||
189 | 189 | ||
190 | default: /* Unknown opcode */ | 190 | default: /* Unknown opcode */ |
191 | 191 | ||
192 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 192 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
193 | walk_state->opcode)); | 193 | walk_state->opcode)); |
194 | status = AE_AML_BAD_OPCODE; | 194 | status = AE_AML_BAD_OPCODE; |
195 | break; | 195 | break; |
@@ -229,7 +229,7 @@ acpi_status acpi_ex_opcode_1A_1T_0R(struct acpi_walk_state *walk_state) | |||
229 | 229 | ||
230 | default: /* Unknown opcode */ | 230 | default: /* Unknown opcode */ |
231 | 231 | ||
232 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 232 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
233 | walk_state->opcode)); | 233 | walk_state->opcode)); |
234 | status = AE_AML_BAD_OPCODE; | 234 | status = AE_AML_BAD_OPCODE; |
235 | goto cleanup; | 235 | goto cleanup; |
@@ -399,7 +399,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state) | |||
399 | 399 | ||
400 | if (digit > 0) { | 400 | if (digit > 0) { |
401 | ACPI_ERROR((AE_INFO, | 401 | ACPI_ERROR((AE_INFO, |
402 | "Integer too large to convert to BCD: %8.8X%8.8X", | 402 | "Integer too large to convert to BCD: 0x%8.8X%8.8X", |
403 | ACPI_FORMAT_UINT64(operand[0]-> | 403 | ACPI_FORMAT_UINT64(operand[0]-> |
404 | integer.value))); | 404 | integer.value))); |
405 | status = AE_AML_NUMERIC_OVERFLOW; | 405 | status = AE_AML_NUMERIC_OVERFLOW; |
@@ -540,7 +540,7 @@ acpi_status acpi_ex_opcode_1A_1T_1R(struct acpi_walk_state *walk_state) | |||
540 | 540 | ||
541 | default: /* Unknown opcode */ | 541 | default: /* Unknown opcode */ |
542 | 542 | ||
543 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 543 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
544 | walk_state->opcode)); | 544 | walk_state->opcode)); |
545 | status = AE_AML_BAD_OPCODE; | 545 | status = AE_AML_BAD_OPCODE; |
546 | goto cleanup; | 546 | goto cleanup; |
@@ -979,7 +979,7 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state) | |||
979 | default: | 979 | default: |
980 | 980 | ||
981 | ACPI_ERROR((AE_INFO, | 981 | ACPI_ERROR((AE_INFO, |
982 | "Unknown Index TargetType %X in reference object %p", | 982 | "Unknown Index TargetType 0x%X in reference object %p", |
983 | operand[0]->reference. | 983 | operand[0]->reference. |
984 | target_type, operand[0])); | 984 | target_type, operand[0])); |
985 | status = AE_AML_OPERAND_TYPE; | 985 | status = AE_AML_OPERAND_TYPE; |
@@ -1007,7 +1007,7 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state) | |||
1007 | 1007 | ||
1008 | default: | 1008 | default: |
1009 | ACPI_ERROR((AE_INFO, | 1009 | ACPI_ERROR((AE_INFO, |
1010 | "Unknown class in reference(%p) - %2.2X", | 1010 | "Unknown class in reference(%p) - 0x%2.2X", |
1011 | operand[0], | 1011 | operand[0], |
1012 | operand[0]->reference.class)); | 1012 | operand[0]->reference.class)); |
1013 | 1013 | ||
@@ -1019,7 +1019,7 @@ acpi_status acpi_ex_opcode_1A_0T_1R(struct acpi_walk_state *walk_state) | |||
1019 | 1019 | ||
1020 | default: | 1020 | default: |
1021 | 1021 | ||
1022 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 1022 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
1023 | walk_state->opcode)); | 1023 | walk_state->opcode)); |
1024 | status = AE_AML_BAD_OPCODE; | 1024 | status = AE_AML_BAD_OPCODE; |
1025 | goto cleanup; | 1025 | goto cleanup; |
diff --git a/drivers/acpi/acpica/exoparg2.c b/drivers/acpi/acpica/exoparg2.c index 22841bbbe63c..3f3f48bb2dc8 100644 --- a/drivers/acpi/acpica/exoparg2.c +++ b/drivers/acpi/acpica/exoparg2.c | |||
@@ -159,7 +159,7 @@ acpi_status acpi_ex_opcode_2A_0T_0R(struct acpi_walk_state *walk_state) | |||
159 | 159 | ||
160 | default: | 160 | default: |
161 | 161 | ||
162 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 162 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
163 | walk_state->opcode)); | 163 | walk_state->opcode)); |
164 | status = AE_AML_BAD_OPCODE; | 164 | status = AE_AML_BAD_OPCODE; |
165 | } | 165 | } |
@@ -224,7 +224,7 @@ acpi_status acpi_ex_opcode_2A_2T_1R(struct acpi_walk_state *walk_state) | |||
224 | 224 | ||
225 | default: | 225 | default: |
226 | 226 | ||
227 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 227 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
228 | walk_state->opcode)); | 228 | walk_state->opcode)); |
229 | status = AE_AML_BAD_OPCODE; | 229 | status = AE_AML_BAD_OPCODE; |
230 | goto cleanup; | 230 | goto cleanup; |
@@ -441,7 +441,7 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state) | |||
441 | 441 | ||
442 | if (ACPI_FAILURE(status)) { | 442 | if (ACPI_FAILURE(status)) { |
443 | ACPI_EXCEPTION((AE_INFO, status, | 443 | ACPI_EXCEPTION((AE_INFO, status, |
444 | "Index (%X%8.8X) is beyond end of object", | 444 | "Index (0x%8.8X%8.8X) is beyond end of object", |
445 | ACPI_FORMAT_UINT64(index))); | 445 | ACPI_FORMAT_UINT64(index))); |
446 | goto cleanup; | 446 | goto cleanup; |
447 | } | 447 | } |
@@ -464,7 +464,7 @@ acpi_status acpi_ex_opcode_2A_1T_1R(struct acpi_walk_state *walk_state) | |||
464 | 464 | ||
465 | default: | 465 | default: |
466 | 466 | ||
467 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 467 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
468 | walk_state->opcode)); | 468 | walk_state->opcode)); |
469 | status = AE_AML_BAD_OPCODE; | 469 | status = AE_AML_BAD_OPCODE; |
470 | break; | 470 | break; |
@@ -572,7 +572,7 @@ acpi_status acpi_ex_opcode_2A_0T_1R(struct acpi_walk_state *walk_state) | |||
572 | 572 | ||
573 | default: | 573 | default: |
574 | 574 | ||
575 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 575 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
576 | walk_state->opcode)); | 576 | walk_state->opcode)); |
577 | status = AE_AML_BAD_OPCODE; | 577 | status = AE_AML_BAD_OPCODE; |
578 | goto cleanup; | 578 | goto cleanup; |
diff --git a/drivers/acpi/acpica/exoparg3.c b/drivers/acpi/acpica/exoparg3.c index 8bb1012ef44e..7a08d23befcd 100644 --- a/drivers/acpi/acpica/exoparg3.c +++ b/drivers/acpi/acpica/exoparg3.c | |||
@@ -119,7 +119,7 @@ acpi_status acpi_ex_opcode_3A_0T_0R(struct acpi_walk_state *walk_state) | |||
119 | 119 | ||
120 | default: | 120 | default: |
121 | 121 | ||
122 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 122 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
123 | walk_state->opcode)); | 123 | walk_state->opcode)); |
124 | status = AE_AML_BAD_OPCODE; | 124 | status = AE_AML_BAD_OPCODE; |
125 | goto cleanup; | 125 | goto cleanup; |
@@ -244,7 +244,7 @@ acpi_status acpi_ex_opcode_3A_1T_1R(struct acpi_walk_state *walk_state) | |||
244 | 244 | ||
245 | default: | 245 | default: |
246 | 246 | ||
247 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 247 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
248 | walk_state->opcode)); | 248 | walk_state->opcode)); |
249 | status = AE_AML_BAD_OPCODE; | 249 | status = AE_AML_BAD_OPCODE; |
250 | goto cleanup; | 250 | goto cleanup; |
diff --git a/drivers/acpi/acpica/exoparg6.c b/drivers/acpi/acpica/exoparg6.c index f256b6a25f2e..4b50730cf9a0 100644 --- a/drivers/acpi/acpica/exoparg6.c +++ b/drivers/acpi/acpica/exoparg6.c | |||
@@ -245,7 +245,7 @@ acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state * walk_state) | |||
245 | index = operand[5]->integer.value; | 245 | index = operand[5]->integer.value; |
246 | if (index >= operand[0]->package.count) { | 246 | if (index >= operand[0]->package.count) { |
247 | ACPI_ERROR((AE_INFO, | 247 | ACPI_ERROR((AE_INFO, |
248 | "Index (%X%8.8X) beyond package end (%X)", | 248 | "Index (0x%8.8X%8.8X) beyond package end (0x%X)", |
249 | ACPI_FORMAT_UINT64(index), | 249 | ACPI_FORMAT_UINT64(index), |
250 | operand[0]->package.count)); | 250 | operand[0]->package.count)); |
251 | status = AE_AML_PACKAGE_LIMIT; | 251 | status = AE_AML_PACKAGE_LIMIT; |
@@ -314,7 +314,7 @@ acpi_status acpi_ex_opcode_6A_0T_1R(struct acpi_walk_state * walk_state) | |||
314 | 314 | ||
315 | default: | 315 | default: |
316 | 316 | ||
317 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", | 317 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", |
318 | walk_state->opcode)); | 318 | walk_state->opcode)); |
319 | status = AE_AML_BAD_OPCODE; | 319 | status = AE_AML_BAD_OPCODE; |
320 | goto cleanup; | 320 | goto cleanup; |
diff --git a/drivers/acpi/acpica/exprep.c b/drivers/acpi/acpica/exprep.c index 2fbfe51fb141..25059dace0ad 100644 --- a/drivers/acpi/acpica/exprep.c +++ b/drivers/acpi/acpica/exprep.c | |||
@@ -275,7 +275,7 @@ acpi_ex_decode_field_access(union acpi_operand_object *obj_desc, | |||
275 | default: | 275 | default: |
276 | /* Invalid field access type */ | 276 | /* Invalid field access type */ |
277 | 277 | ||
278 | ACPI_ERROR((AE_INFO, "Unknown field access type %X", access)); | 278 | ACPI_ERROR((AE_INFO, "Unknown field access type 0x%X", access)); |
279 | return_UINT32(0); | 279 | return_UINT32(0); |
280 | } | 280 | } |
281 | 281 | ||
@@ -430,7 +430,7 @@ acpi_status acpi_ex_prep_field_value(struct acpi_create_field_info *info) | |||
430 | type = acpi_ns_get_type(info->region_node); | 430 | type = acpi_ns_get_type(info->region_node); |
431 | if (type != ACPI_TYPE_REGION) { | 431 | if (type != ACPI_TYPE_REGION) { |
432 | ACPI_ERROR((AE_INFO, | 432 | ACPI_ERROR((AE_INFO, |
433 | "Needed Region, found type %X (%s)", | 433 | "Needed Region, found type 0x%X (%s)", |
434 | type, acpi_ut_get_type_name(type))); | 434 | type, acpi_ut_get_type_name(type))); |
435 | 435 | ||
436 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); | 436 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); |
diff --git a/drivers/acpi/acpica/exregion.c b/drivers/acpi/acpica/exregion.c index 486b2e5661b6..a8703cc20ad1 100644 --- a/drivers/acpi/acpica/exregion.c +++ b/drivers/acpi/acpica/exregion.c | |||
@@ -105,7 +105,7 @@ acpi_ex_system_memory_space_handler(u32 function, | |||
105 | break; | 105 | break; |
106 | 106 | ||
107 | default: | 107 | default: |
108 | ACPI_ERROR((AE_INFO, "Invalid SystemMemory width %d", | 108 | ACPI_ERROR((AE_INFO, "Invalid SystemMemory width %u", |
109 | bit_width)); | 109 | bit_width)); |
110 | return_ACPI_STATUS(AE_AML_OPERAND_VALUE); | 110 | return_ACPI_STATUS(AE_AML_OPERAND_VALUE); |
111 | } | 111 | } |
@@ -173,7 +173,7 @@ acpi_ex_system_memory_space_handler(u32 function, | |||
173 | mem_info->mapped_logical_address = acpi_os_map_memory((acpi_physical_address) address, map_length); | 173 | mem_info->mapped_logical_address = acpi_os_map_memory((acpi_physical_address) address, map_length); |
174 | if (!mem_info->mapped_logical_address) { | 174 | if (!mem_info->mapped_logical_address) { |
175 | ACPI_ERROR((AE_INFO, | 175 | ACPI_ERROR((AE_INFO, |
176 | "Could not map memory at %8.8X%8.8X, size %X", | 176 | "Could not map memory at 0x%8.8X%8.8X, size %u", |
177 | ACPI_FORMAT_NATIVE_UINT(address), | 177 | ACPI_FORMAT_NATIVE_UINT(address), |
178 | (u32) map_length)); | 178 | (u32) map_length)); |
179 | mem_info->mapped_length = 0; | 179 | mem_info->mapped_length = 0; |
diff --git a/drivers/acpi/acpica/exresnte.c b/drivers/acpi/acpica/exresnte.c index fdc1b27999ef..1fa4289a687e 100644 --- a/drivers/acpi/acpica/exresnte.c +++ b/drivers/acpi/acpica/exresnte.c | |||
@@ -252,7 +252,7 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr, | |||
252 | /* No named references are allowed here */ | 252 | /* No named references are allowed here */ |
253 | 253 | ||
254 | ACPI_ERROR((AE_INFO, | 254 | ACPI_ERROR((AE_INFO, |
255 | "Unsupported Reference type %X", | 255 | "Unsupported Reference type 0x%X", |
256 | source_desc->reference.class)); | 256 | source_desc->reference.class)); |
257 | 257 | ||
258 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); | 258 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); |
@@ -264,7 +264,7 @@ acpi_ex_resolve_node_to_value(struct acpi_namespace_node **object_ptr, | |||
264 | /* Default case is for unknown types */ | 264 | /* Default case is for unknown types */ |
265 | 265 | ||
266 | ACPI_ERROR((AE_INFO, | 266 | ACPI_ERROR((AE_INFO, |
267 | "Node %p - Unknown object type %X", | 267 | "Node %p - Unknown object type 0x%X", |
268 | node, entry_type)); | 268 | node, entry_type)); |
269 | 269 | ||
270 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); | 270 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); |
diff --git a/drivers/acpi/acpica/exresolv.c b/drivers/acpi/acpica/exresolv.c index fdd6a7079b97..7ca35ea8acea 100644 --- a/drivers/acpi/acpica/exresolv.c +++ b/drivers/acpi/acpica/exresolv.c | |||
@@ -231,7 +231,7 @@ acpi_ex_resolve_object_to_value(union acpi_operand_object **stack_ptr, | |||
231 | /* Invalid reference object */ | 231 | /* Invalid reference object */ |
232 | 232 | ||
233 | ACPI_ERROR((AE_INFO, | 233 | ACPI_ERROR((AE_INFO, |
234 | "Unknown TargetType %X in Index/Reference object %p", | 234 | "Unknown TargetType 0x%X in Index/Reference object %p", |
235 | stack_desc->reference.target_type, | 235 | stack_desc->reference.target_type, |
236 | stack_desc)); | 236 | stack_desc)); |
237 | status = AE_AML_INTERNAL; | 237 | status = AE_AML_INTERNAL; |
@@ -273,8 +273,8 @@ acpi_ex_resolve_object_to_value(union acpi_operand_object **stack_ptr, | |||
273 | default: | 273 | default: |
274 | 274 | ||
275 | ACPI_ERROR((AE_INFO, | 275 | ACPI_ERROR((AE_INFO, |
276 | "Unknown Reference type %X in %p", ref_type, | 276 | "Unknown Reference type 0x%X in %p", |
277 | stack_desc)); | 277 | ref_type, stack_desc)); |
278 | status = AE_AML_INTERNAL; | 278 | status = AE_AML_INTERNAL; |
279 | break; | 279 | break; |
280 | } | 280 | } |
@@ -403,7 +403,8 @@ acpi_ex_resolve_multiple(struct acpi_walk_state *walk_state, | |||
403 | 403 | ||
404 | if (ACPI_GET_DESCRIPTOR_TYPE(node) != | 404 | if (ACPI_GET_DESCRIPTOR_TYPE(node) != |
405 | ACPI_DESC_TYPE_NAMED) { | 405 | ACPI_DESC_TYPE_NAMED) { |
406 | ACPI_ERROR((AE_INFO, "Not a NS node %p [%s]", | 406 | ACPI_ERROR((AE_INFO, |
407 | "Not a namespace node %p [%s]", | ||
407 | node, | 408 | node, |
408 | acpi_ut_get_descriptor_name(node))); | 409 | acpi_ut_get_descriptor_name(node))); |
409 | return_ACPI_STATUS(AE_AML_INTERNAL); | 410 | return_ACPI_STATUS(AE_AML_INTERNAL); |
@@ -507,7 +508,7 @@ acpi_ex_resolve_multiple(struct acpi_walk_state *walk_state, | |||
507 | default: | 508 | default: |
508 | 509 | ||
509 | ACPI_ERROR((AE_INFO, | 510 | ACPI_ERROR((AE_INFO, |
510 | "Unknown Reference Class %2.2X", | 511 | "Unknown Reference Class 0x%2.2X", |
511 | obj_desc->reference.class)); | 512 | obj_desc->reference.class)); |
512 | return_ACPI_STATUS(AE_AML_INTERNAL); | 513 | return_ACPI_STATUS(AE_AML_INTERNAL); |
513 | } | 514 | } |
diff --git a/drivers/acpi/acpica/exresop.c b/drivers/acpi/acpica/exresop.c index c5ecd615f145..8c97cfd6a0fd 100644 --- a/drivers/acpi/acpica/exresop.c +++ b/drivers/acpi/acpica/exresop.c | |||
@@ -153,7 +153,7 @@ acpi_ex_resolve_operands(u16 opcode, | |||
153 | 153 | ||
154 | arg_types = op_info->runtime_args; | 154 | arg_types = op_info->runtime_args; |
155 | if (arg_types == ARGI_INVALID_OPCODE) { | 155 | if (arg_types == ARGI_INVALID_OPCODE) { |
156 | ACPI_ERROR((AE_INFO, "Unknown AML opcode %X", opcode)); | 156 | ACPI_ERROR((AE_INFO, "Unknown AML opcode 0x%X", opcode)); |
157 | 157 | ||
158 | return_ACPI_STATUS(AE_AML_INTERNAL); | 158 | return_ACPI_STATUS(AE_AML_INTERNAL); |
159 | } | 159 | } |
@@ -218,7 +218,7 @@ acpi_ex_resolve_operands(u16 opcode, | |||
218 | 218 | ||
219 | if (!acpi_ut_valid_object_type(object_type)) { | 219 | if (!acpi_ut_valid_object_type(object_type)) { |
220 | ACPI_ERROR((AE_INFO, | 220 | ACPI_ERROR((AE_INFO, |
221 | "Bad operand object type [%X]", | 221 | "Bad operand object type [0x%X]", |
222 | object_type)); | 222 | object_type)); |
223 | 223 | ||
224 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); | 224 | return_ACPI_STATUS(AE_AML_OPERAND_TYPE); |
@@ -253,7 +253,7 @@ acpi_ex_resolve_operands(u16 opcode, | |||
253 | default: | 253 | default: |
254 | 254 | ||
255 | ACPI_ERROR((AE_INFO, | 255 | ACPI_ERROR((AE_INFO, |
256 | "Unknown Reference Class %2.2X in %p", | 256 | "Unknown Reference Class 0x%2.2X in %p", |
257 | obj_desc->reference.class, | 257 | obj_desc->reference.class, |
258 | obj_desc)); | 258 | obj_desc)); |
259 | 259 | ||
@@ -665,7 +665,7 @@ acpi_ex_resolve_operands(u16 opcode, | |||
665 | /* Unknown type */ | 665 | /* Unknown type */ |
666 | 666 | ||
667 | ACPI_ERROR((AE_INFO, | 667 | ACPI_ERROR((AE_INFO, |
668 | "Internal - Unknown ARGI (required operand) type %X", | 668 | "Internal - Unknown ARGI (required operand) type 0x%X", |
669 | this_arg_type)); | 669 | this_arg_type)); |
670 | 670 | ||
671 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 671 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
diff --git a/drivers/acpi/acpica/exstore.c b/drivers/acpi/acpica/exstore.c index f65d7e4ef9c7..1624436ba4c5 100644 --- a/drivers/acpi/acpica/exstore.c +++ b/drivers/acpi/acpica/exstore.c | |||
@@ -193,7 +193,7 @@ acpi_ex_store(union acpi_operand_object *source_desc, | |||
193 | 193 | ||
194 | default: | 194 | default: |
195 | 195 | ||
196 | ACPI_ERROR((AE_INFO, "Unknown Reference Class %2.2X", | 196 | ACPI_ERROR((AE_INFO, "Unknown Reference Class 0x%2.2X", |
197 | ref_desc->reference.class)); | 197 | ref_desc->reference.class)); |
198 | ACPI_DUMP_ENTRY(ref_desc, ACPI_LV_INFO); | 198 | ACPI_DUMP_ENTRY(ref_desc, ACPI_LV_INFO); |
199 | 199 | ||
diff --git a/drivers/acpi/acpica/exsystem.c b/drivers/acpi/acpica/exsystem.c index e11b6cb42a57..c9513d534082 100644 --- a/drivers/acpi/acpica/exsystem.c +++ b/drivers/acpi/acpica/exsystem.c | |||
@@ -170,7 +170,7 @@ acpi_status acpi_ex_system_do_stall(u32 how_long) | |||
170 | * (ACPI specifies 100 usec as max, but this gives some slack in | 170 | * (ACPI specifies 100 usec as max, but this gives some slack in |
171 | * order to support existing BIOSs) | 171 | * order to support existing BIOSs) |
172 | */ | 172 | */ |
173 | ACPI_ERROR((AE_INFO, "Time parameter is too large (%d)", | 173 | ACPI_ERROR((AE_INFO, "Time parameter is too large (%u)", |
174 | how_long)); | 174 | how_long)); |
175 | status = AE_AML_OPERAND_VALUE; | 175 | status = AE_AML_OPERAND_VALUE; |
176 | } else { | 176 | } else { |
diff --git a/drivers/acpi/acpica/hwregs.c b/drivers/acpi/acpica/hwregs.c index ec7fc227b33f..5d1273b660ae 100644 --- a/drivers/acpi/acpica/hwregs.c +++ b/drivers/acpi/acpica/hwregs.c | |||
@@ -299,7 +299,7 @@ struct acpi_bit_register_info *acpi_hw_get_bit_register_info(u32 register_id) | |||
299 | ACPI_FUNCTION_ENTRY(); | 299 | ACPI_FUNCTION_ENTRY(); |
300 | 300 | ||
301 | if (register_id > ACPI_BITREG_MAX) { | 301 | if (register_id > ACPI_BITREG_MAX) { |
302 | ACPI_ERROR((AE_INFO, "Invalid BitRegister ID: %X", | 302 | ACPI_ERROR((AE_INFO, "Invalid BitRegister ID: 0x%X", |
303 | register_id)); | 303 | register_id)); |
304 | return (NULL); | 304 | return (NULL); |
305 | } | 305 | } |
@@ -413,7 +413,7 @@ acpi_hw_register_read(u32 register_id, u32 * return_value) | |||
413 | break; | 413 | break; |
414 | 414 | ||
415 | default: | 415 | default: |
416 | ACPI_ERROR((AE_INFO, "Unknown Register ID: %X", register_id)); | 416 | ACPI_ERROR((AE_INFO, "Unknown Register ID: 0x%X", register_id)); |
417 | status = AE_BAD_PARAMETER; | 417 | status = AE_BAD_PARAMETER; |
418 | break; | 418 | break; |
419 | } | 419 | } |
@@ -549,7 +549,7 @@ acpi_status acpi_hw_register_write(u32 register_id, u32 value) | |||
549 | break; | 549 | break; |
550 | 550 | ||
551 | default: | 551 | default: |
552 | ACPI_ERROR((AE_INFO, "Unknown Register ID: %X", register_id)); | 552 | ACPI_ERROR((AE_INFO, "Unknown Register ID: 0x%X", register_id)); |
553 | status = AE_BAD_PARAMETER; | 553 | status = AE_BAD_PARAMETER; |
554 | break; | 554 | break; |
555 | } | 555 | } |
diff --git a/drivers/acpi/acpica/hwsleep.c b/drivers/acpi/acpica/hwsleep.c index 5e6d4dbb8024..36eb803dd9d0 100644 --- a/drivers/acpi/acpica/hwsleep.c +++ b/drivers/acpi/acpica/hwsleep.c | |||
@@ -245,7 +245,7 @@ acpi_status asmlinkage acpi_enter_sleep_state(u8 sleep_state) | |||
245 | 245 | ||
246 | if ((acpi_gbl_sleep_type_a > ACPI_SLEEP_TYPE_MAX) || | 246 | if ((acpi_gbl_sleep_type_a > ACPI_SLEEP_TYPE_MAX) || |
247 | (acpi_gbl_sleep_type_b > ACPI_SLEEP_TYPE_MAX)) { | 247 | (acpi_gbl_sleep_type_b > ACPI_SLEEP_TYPE_MAX)) { |
248 | ACPI_ERROR((AE_INFO, "Sleep values out of range: A=%X B=%X", | 248 | ACPI_ERROR((AE_INFO, "Sleep values out of range: A=0x%X B=0x%X", |
249 | acpi_gbl_sleep_type_a, acpi_gbl_sleep_type_b)); | 249 | acpi_gbl_sleep_type_a, acpi_gbl_sleep_type_b)); |
250 | return_ACPI_STATUS(AE_AML_OPERAND_VALUE); | 250 | return_ACPI_STATUS(AE_AML_OPERAND_VALUE); |
251 | } | 251 | } |
diff --git a/drivers/acpi/acpica/hwvalid.c b/drivers/acpi/acpica/hwvalid.c index e26c17d4b716..c10d587c1641 100644 --- a/drivers/acpi/acpica/hwvalid.c +++ b/drivers/acpi/acpica/hwvalid.c | |||
@@ -150,7 +150,7 @@ acpi_hw_validate_io_request(acpi_io_address address, u32 bit_width) | |||
150 | 150 | ||
151 | if (last_address > ACPI_UINT16_MAX) { | 151 | if (last_address > ACPI_UINT16_MAX) { |
152 | ACPI_ERROR((AE_INFO, | 152 | ACPI_ERROR((AE_INFO, |
153 | "Illegal I/O port address/length above 64K: 0x%p/%X", | 153 | "Illegal I/O port address/length above 64K: %p/0x%X", |
154 | ACPI_CAST_PTR(void, address), byte_width)); | 154 | ACPI_CAST_PTR(void, address), byte_width)); |
155 | return_ACPI_STATUS(AE_LIMIT); | 155 | return_ACPI_STATUS(AE_LIMIT); |
156 | } | 156 | } |
diff --git a/drivers/acpi/acpica/nsaccess.c b/drivers/acpi/acpica/nsaccess.c index aa2b80132d0a..3a2814676ac3 100644 --- a/drivers/acpi/acpica/nsaccess.c +++ b/drivers/acpi/acpica/nsaccess.c | |||
@@ -222,7 +222,7 @@ acpi_status acpi_ns_root_initialize(void) | |||
222 | default: | 222 | default: |
223 | 223 | ||
224 | ACPI_ERROR((AE_INFO, | 224 | ACPI_ERROR((AE_INFO, |
225 | "Unsupported initial type value %X", | 225 | "Unsupported initial type value 0x%X", |
226 | init_val->type)); | 226 | init_val->type)); |
227 | acpi_ut_remove_reference(obj_desc); | 227 | acpi_ut_remove_reference(obj_desc); |
228 | obj_desc = NULL; | 228 | obj_desc = NULL; |
diff --git a/drivers/acpi/acpica/nsdump.c b/drivers/acpi/acpica/nsdump.c index 0689d36638d9..2110cc2360f0 100644 --- a/drivers/acpi/acpica/nsdump.c +++ b/drivers/acpi/acpica/nsdump.c | |||
@@ -205,8 +205,8 @@ acpi_ns_dump_one_object(acpi_handle obj_handle, | |||
205 | /* Check the node type and name */ | 205 | /* Check the node type and name */ |
206 | 206 | ||
207 | if (type > ACPI_TYPE_LOCAL_MAX) { | 207 | if (type > ACPI_TYPE_LOCAL_MAX) { |
208 | ACPI_WARNING((AE_INFO, "Invalid ACPI Object Type %08X", | 208 | ACPI_WARNING((AE_INFO, |
209 | type)); | 209 | "Invalid ACPI Object Type 0x%08X", type)); |
210 | } | 210 | } |
211 | 211 | ||
212 | if (!acpi_ut_valid_acpi_name(this_node->name.integer)) { | 212 | if (!acpi_ut_valid_acpi_name(this_node->name.integer)) { |
diff --git a/drivers/acpi/acpica/nsnames.c b/drivers/acpi/acpica/nsnames.c index 959372451635..7dea0031605c 100644 --- a/drivers/acpi/acpica/nsnames.c +++ b/drivers/acpi/acpica/nsnames.c | |||
@@ -107,7 +107,7 @@ acpi_ns_build_external_path(struct acpi_namespace_node *node, | |||
107 | 107 | ||
108 | if (index != 0) { | 108 | if (index != 0) { |
109 | ACPI_ERROR((AE_INFO, | 109 | ACPI_ERROR((AE_INFO, |
110 | "Could not construct external pathname; index=%X, size=%X, Path=%s", | 110 | "Could not construct external pathname; index=%u, size=%u, Path=%s", |
111 | (u32) index, (u32) size, &name_buffer[size])); | 111 | (u32) index, (u32) size, &name_buffer[size])); |
112 | 112 | ||
113 | return (AE_BAD_PARAMETER); | 113 | return (AE_BAD_PARAMETER); |
diff --git a/drivers/acpi/acpica/nssearch.c b/drivers/acpi/acpica/nssearch.c index 08f8b3f5ccaa..a8e42b5e9463 100644 --- a/drivers/acpi/acpica/nssearch.c +++ b/drivers/acpi/acpica/nssearch.c | |||
@@ -311,7 +311,7 @@ acpi_ns_search_and_enter(u32 target_name, | |||
311 | 311 | ||
312 | if (!node || !target_name || !return_node) { | 312 | if (!node || !target_name || !return_node) { |
313 | ACPI_ERROR((AE_INFO, | 313 | ACPI_ERROR((AE_INFO, |
314 | "Null parameter: Node %p Name %X ReturnNode %p", | 314 | "Null parameter: Node %p Name 0x%X ReturnNode %p", |
315 | node, target_name, return_node)); | 315 | node, target_name, return_node)); |
316 | return_ACPI_STATUS(AE_BAD_PARAMETER); | 316 | return_ACPI_STATUS(AE_BAD_PARAMETER); |
317 | } | 317 | } |
diff --git a/drivers/acpi/acpica/nsutils.c b/drivers/acpi/acpica/nsutils.c index 24d05a87a2a3..bab559712da1 100644 --- a/drivers/acpi/acpica/nsutils.c +++ b/drivers/acpi/acpica/nsutils.c | |||
@@ -276,7 +276,7 @@ u32 acpi_ns_local(acpi_object_type type) | |||
276 | 276 | ||
277 | /* Type code out of range */ | 277 | /* Type code out of range */ |
278 | 278 | ||
279 | ACPI_WARNING((AE_INFO, "Invalid Object Type %X", type)); | 279 | ACPI_WARNING((AE_INFO, "Invalid Object Type 0x%X", type)); |
280 | return_UINT32(ACPI_NS_NORMAL); | 280 | return_UINT32(ACPI_NS_NORMAL); |
281 | } | 281 | } |
282 | 282 | ||
@@ -764,7 +764,7 @@ u32 acpi_ns_opens_scope(acpi_object_type type) | |||
764 | 764 | ||
765 | /* type code out of range */ | 765 | /* type code out of range */ |
766 | 766 | ||
767 | ACPI_WARNING((AE_INFO, "Invalid Object Type %X", type)); | 767 | ACPI_WARNING((AE_INFO, "Invalid Object Type 0x%X", type)); |
768 | return_UINT32(ACPI_NS_NORMAL); | 768 | return_UINT32(ACPI_NS_NORMAL); |
769 | } | 769 | } |
770 | 770 | ||
diff --git a/drivers/acpi/acpica/psargs.c b/drivers/acpi/acpica/psargs.c index 00493e108a01..7df1a4c95274 100644 --- a/drivers/acpi/acpica/psargs.c +++ b/drivers/acpi/acpica/psargs.c | |||
@@ -460,7 +460,7 @@ acpi_ps_get_next_simple_arg(struct acpi_parse_state *parser_state, | |||
460 | 460 | ||
461 | default: | 461 | default: |
462 | 462 | ||
463 | ACPI_ERROR((AE_INFO, "Invalid ArgType %X", arg_type)); | 463 | ACPI_ERROR((AE_INFO, "Invalid ArgType 0x%X", arg_type)); |
464 | return_VOID; | 464 | return_VOID; |
465 | } | 465 | } |
466 | 466 | ||
@@ -742,7 +742,7 @@ acpi_ps_get_next_arg(struct acpi_walk_state *walk_state, | |||
742 | 742 | ||
743 | default: | 743 | default: |
744 | 744 | ||
745 | ACPI_ERROR((AE_INFO, "Invalid ArgType: %X", arg_type)); | 745 | ACPI_ERROR((AE_INFO, "Invalid ArgType: 0x%X", arg_type)); |
746 | status = AE_AML_OPERAND_TYPE; | 746 | status = AE_AML_OPERAND_TYPE; |
747 | break; | 747 | break; |
748 | } | 748 | } |
diff --git a/drivers/acpi/acpica/psloop.c b/drivers/acpi/acpica/psloop.c index 59aabaeab1d3..2f2e7760938c 100644 --- a/drivers/acpi/acpica/psloop.c +++ b/drivers/acpi/acpica/psloop.c | |||
@@ -136,7 +136,7 @@ static acpi_status acpi_ps_get_aml_opcode(struct acpi_walk_state *walk_state) | |||
136 | /* The opcode is unrecognized. Just skip unknown opcodes */ | 136 | /* The opcode is unrecognized. Just skip unknown opcodes */ |
137 | 137 | ||
138 | ACPI_ERROR((AE_INFO, | 138 | ACPI_ERROR((AE_INFO, |
139 | "Found unknown opcode %X at AML address %p offset %X, ignoring", | 139 | "Found unknown opcode 0x%X at AML address %p offset 0x%X, ignoring", |
140 | walk_state->opcode, walk_state->parser_state.aml, | 140 | walk_state->opcode, walk_state->parser_state.aml, |
141 | walk_state->aml_offset)); | 141 | walk_state->aml_offset)); |
142 | 142 | ||
@@ -1021,7 +1021,6 @@ acpi_status acpi_ps_parse_loop(struct acpi_walk_state *walk_state) | |||
1021 | if (status == AE_AML_NO_RETURN_VALUE) { | 1021 | if (status == AE_AML_NO_RETURN_VALUE) { |
1022 | ACPI_EXCEPTION((AE_INFO, status, | 1022 | ACPI_EXCEPTION((AE_INFO, status, |
1023 | "Invoked method did not return a value")); | 1023 | "Invoked method did not return a value")); |
1024 | |||
1025 | } | 1024 | } |
1026 | 1025 | ||
1027 | ACPI_EXCEPTION((AE_INFO, status, | 1026 | ACPI_EXCEPTION((AE_INFO, status, |
diff --git a/drivers/acpi/acpica/rscreate.c b/drivers/acpi/acpica/rscreate.c index f2ee3b548609..c80a2eea3a01 100644 --- a/drivers/acpi/acpica/rscreate.c +++ b/drivers/acpi/acpica/rscreate.c | |||
@@ -212,7 +212,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
212 | 212 | ||
213 | if ((*top_object_list)->common.type != ACPI_TYPE_PACKAGE) { | 213 | if ((*top_object_list)->common.type != ACPI_TYPE_PACKAGE) { |
214 | ACPI_ERROR((AE_INFO, | 214 | ACPI_ERROR((AE_INFO, |
215 | "(PRT[%X]) Need sub-package, found %s", | 215 | "(PRT[%u]) Need sub-package, found %s", |
216 | index, | 216 | index, |
217 | acpi_ut_get_object_type_name | 217 | acpi_ut_get_object_type_name |
218 | (*top_object_list))); | 218 | (*top_object_list))); |
@@ -223,7 +223,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
223 | 223 | ||
224 | if ((*top_object_list)->package.count != 4) { | 224 | if ((*top_object_list)->package.count != 4) { |
225 | ACPI_ERROR((AE_INFO, | 225 | ACPI_ERROR((AE_INFO, |
226 | "(PRT[%X]) Need package of length 4, found length %d", | 226 | "(PRT[%u]) Need package of length 4, found length %u", |
227 | index, (*top_object_list)->package.count)); | 227 | index, (*top_object_list)->package.count)); |
228 | return_ACPI_STATUS(AE_AML_PACKAGE_LIMIT); | 228 | return_ACPI_STATUS(AE_AML_PACKAGE_LIMIT); |
229 | } | 229 | } |
@@ -240,7 +240,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
240 | obj_desc = sub_object_list[0]; | 240 | obj_desc = sub_object_list[0]; |
241 | if (obj_desc->common.type != ACPI_TYPE_INTEGER) { | 241 | if (obj_desc->common.type != ACPI_TYPE_INTEGER) { |
242 | ACPI_ERROR((AE_INFO, | 242 | ACPI_ERROR((AE_INFO, |
243 | "(PRT[%X].Address) Need Integer, found %s", | 243 | "(PRT[%u].Address) Need Integer, found %s", |
244 | index, | 244 | index, |
245 | acpi_ut_get_object_type_name(obj_desc))); | 245 | acpi_ut_get_object_type_name(obj_desc))); |
246 | return_ACPI_STATUS(AE_BAD_DATA); | 246 | return_ACPI_STATUS(AE_BAD_DATA); |
@@ -253,7 +253,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
253 | obj_desc = sub_object_list[1]; | 253 | obj_desc = sub_object_list[1]; |
254 | if (obj_desc->common.type != ACPI_TYPE_INTEGER) { | 254 | if (obj_desc->common.type != ACPI_TYPE_INTEGER) { |
255 | ACPI_ERROR((AE_INFO, | 255 | ACPI_ERROR((AE_INFO, |
256 | "(PRT[%X].Pin) Need Integer, found %s", | 256 | "(PRT[%u].Pin) Need Integer, found %s", |
257 | index, | 257 | index, |
258 | acpi_ut_get_object_type_name(obj_desc))); | 258 | acpi_ut_get_object_type_name(obj_desc))); |
259 | return_ACPI_STATUS(AE_BAD_DATA); | 259 | return_ACPI_STATUS(AE_BAD_DATA); |
@@ -289,7 +289,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
289 | if (obj_desc->reference.class != | 289 | if (obj_desc->reference.class != |
290 | ACPI_REFCLASS_NAME) { | 290 | ACPI_REFCLASS_NAME) { |
291 | ACPI_ERROR((AE_INFO, | 291 | ACPI_ERROR((AE_INFO, |
292 | "(PRT[%X].Source) Need name, found Reference Class %X", | 292 | "(PRT[%u].Source) Need name, found Reference Class 0x%X", |
293 | index, | 293 | index, |
294 | obj_desc->reference.class)); | 294 | obj_desc->reference.class)); |
295 | return_ACPI_STATUS(AE_BAD_DATA); | 295 | return_ACPI_STATUS(AE_BAD_DATA); |
@@ -340,7 +340,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
340 | default: | 340 | default: |
341 | 341 | ||
342 | ACPI_ERROR((AE_INFO, | 342 | ACPI_ERROR((AE_INFO, |
343 | "(PRT[%X].Source) Need Ref/String/Integer, found %s", | 343 | "(PRT[%u].Source) Need Ref/String/Integer, found %s", |
344 | index, | 344 | index, |
345 | acpi_ut_get_object_type_name | 345 | acpi_ut_get_object_type_name |
346 | (obj_desc))); | 346 | (obj_desc))); |
@@ -358,7 +358,7 @@ acpi_rs_create_pci_routing_table(union acpi_operand_object *package_object, | |||
358 | obj_desc = sub_object_list[3]; | 358 | obj_desc = sub_object_list[3]; |
359 | if (obj_desc->common.type != ACPI_TYPE_INTEGER) { | 359 | if (obj_desc->common.type != ACPI_TYPE_INTEGER) { |
360 | ACPI_ERROR((AE_INFO, | 360 | ACPI_ERROR((AE_INFO, |
361 | "(PRT[%X].SourceIndex) Need Integer, found %s", | 361 | "(PRT[%u].SourceIndex) Need Integer, found %s", |
362 | index, | 362 | index, |
363 | acpi_ut_get_object_type_name(obj_desc))); | 363 | acpi_ut_get_object_type_name(obj_desc))); |
364 | return_ACPI_STATUS(AE_BAD_DATA); | 364 | return_ACPI_STATUS(AE_BAD_DATA); |
diff --git a/drivers/acpi/acpica/rslist.c b/drivers/acpi/acpica/rslist.c index fd057c72d252..7335f22aac20 100644 --- a/drivers/acpi/acpica/rslist.c +++ b/drivers/acpi/acpica/rslist.c | |||
@@ -94,7 +94,7 @@ acpi_rs_convert_aml_to_resources(u8 * aml, | |||
94 | [resource_index]); | 94 | [resource_index]); |
95 | if (ACPI_FAILURE(status)) { | 95 | if (ACPI_FAILURE(status)) { |
96 | ACPI_EXCEPTION((AE_INFO, status, | 96 | ACPI_EXCEPTION((AE_INFO, status, |
97 | "Could not convert AML resource (Type %X)", | 97 | "Could not convert AML resource (Type 0x%X)", |
98 | *aml)); | 98 | *aml)); |
99 | return_ACPI_STATUS(status); | 99 | return_ACPI_STATUS(status); |
100 | } | 100 | } |
@@ -147,7 +147,7 @@ acpi_rs_convert_resources_to_aml(struct acpi_resource *resource, | |||
147 | 147 | ||
148 | if (resource->type > ACPI_RESOURCE_TYPE_MAX) { | 148 | if (resource->type > ACPI_RESOURCE_TYPE_MAX) { |
149 | ACPI_ERROR((AE_INFO, | 149 | ACPI_ERROR((AE_INFO, |
150 | "Invalid descriptor type (%X) in resource list", | 150 | "Invalid descriptor type (0x%X) in resource list", |
151 | resource->type)); | 151 | resource->type)); |
152 | return_ACPI_STATUS(AE_BAD_DATA); | 152 | return_ACPI_STATUS(AE_BAD_DATA); |
153 | } | 153 | } |
@@ -161,7 +161,7 @@ acpi_rs_convert_resources_to_aml(struct acpi_resource *resource, | |||
161 | [resource->type]); | 161 | [resource->type]); |
162 | if (ACPI_FAILURE(status)) { | 162 | if (ACPI_FAILURE(status)) { |
163 | ACPI_EXCEPTION((AE_INFO, status, | 163 | ACPI_EXCEPTION((AE_INFO, status, |
164 | "Could not convert resource (type %X) to AML", | 164 | "Could not convert resource (type 0x%X) to AML", |
165 | resource->type)); | 165 | resource->type)); |
166 | return_ACPI_STATUS(status); | 166 | return_ACPI_STATUS(status); |
167 | } | 167 | } |
diff --git a/drivers/acpi/acpica/rsmisc.c b/drivers/acpi/acpica/rsmisc.c index 07de352fa443..f8cd9e87d987 100644 --- a/drivers/acpi/acpica/rsmisc.c +++ b/drivers/acpi/acpica/rsmisc.c | |||
@@ -88,7 +88,7 @@ acpi_rs_convert_aml_to_resource(struct acpi_resource *resource, | |||
88 | /* Each internal resource struct is expected to be 32-bit aligned */ | 88 | /* Each internal resource struct is expected to be 32-bit aligned */ |
89 | 89 | ||
90 | ACPI_WARNING((AE_INFO, | 90 | ACPI_WARNING((AE_INFO, |
91 | "Misaligned resource pointer (get): %p Type %2.2X Len %X", | 91 | "Misaligned resource pointer (get): %p Type 0x%2.2X Length %u", |
92 | resource, resource->type, resource->length)); | 92 | resource, resource->type, resource->length)); |
93 | } | 93 | } |
94 | 94 | ||
@@ -541,7 +541,7 @@ if (((aml->irq.flags & 0x09) == 0x00) || ((aml->irq.flags & 0x09) == 0x09)) { | |||
541 | * "IRQ Format"), so 0x00 and 0x09 are illegal. | 541 | * "IRQ Format"), so 0x00 and 0x09 are illegal. |
542 | */ | 542 | */ |
543 | ACPI_ERROR((AE_INFO, | 543 | ACPI_ERROR((AE_INFO, |
544 | "Invalid interrupt polarity/trigger in resource list, %X", | 544 | "Invalid interrupt polarity/trigger in resource list, 0x%X", |
545 | aml->irq.flags)); | 545 | aml->irq.flags)); |
546 | return_ACPI_STATUS(AE_BAD_DATA); | 546 | return_ACPI_STATUS(AE_BAD_DATA); |
547 | } | 547 | } |
diff --git a/drivers/acpi/acpica/tbfadt.c b/drivers/acpi/acpica/tbfadt.c index f43fbe0fc3fc..1728cb9bf600 100644 --- a/drivers/acpi/acpica/tbfadt.c +++ b/drivers/acpi/acpica/tbfadt.c | |||
@@ -283,7 +283,7 @@ void acpi_tb_create_local_fadt(struct acpi_table_header *table, u32 length) | |||
283 | if (length > sizeof(struct acpi_table_fadt)) { | 283 | if (length > sizeof(struct acpi_table_fadt)) { |
284 | ACPI_WARNING((AE_INFO, | 284 | ACPI_WARNING((AE_INFO, |
285 | "FADT (revision %u) is longer than ACPI 2.0 version, " | 285 | "FADT (revision %u) is longer than ACPI 2.0 version, " |
286 | "truncating length 0x%X to 0x%X", | 286 | "truncating length %u to %u", |
287 | table->revision, length, | 287 | table->revision, length, |
288 | (u32)sizeof(struct acpi_table_fadt))); | 288 | (u32)sizeof(struct acpi_table_fadt))); |
289 | } | 289 | } |
@@ -422,7 +422,7 @@ static void acpi_tb_convert_fadt(void) | |||
422 | if (address64->address && address32 && | 422 | if (address64->address && address32 && |
423 | (address64->address != (u64) address32)) { | 423 | (address64->address != (u64) address32)) { |
424 | ACPI_ERROR((AE_INFO, | 424 | ACPI_ERROR((AE_INFO, |
425 | "32/64X address mismatch in %s: %8.8X/%8.8X%8.8X, using 32", | 425 | "32/64X address mismatch in %s: 0x%8.8X/0x%8.8X%8.8X, using 32", |
426 | fadt_info_table[i].name, address32, | 426 | fadt_info_table[i].name, address32, |
427 | ACPI_FORMAT_UINT64(address64->address))); | 427 | ACPI_FORMAT_UINT64(address64->address))); |
428 | } | 428 | } |
@@ -481,7 +481,7 @@ static void acpi_tb_validate_fadt(void) | |||
481 | (acpi_gbl_FADT.Xfacs != (u64) acpi_gbl_FADT.facs)) { | 481 | (acpi_gbl_FADT.Xfacs != (u64) acpi_gbl_FADT.facs)) { |
482 | ACPI_WARNING((AE_INFO, | 482 | ACPI_WARNING((AE_INFO, |
483 | "32/64X FACS address mismatch in FADT - " | 483 | "32/64X FACS address mismatch in FADT - " |
484 | "%8.8X/%8.8X%8.8X, using 32", | 484 | "0x%8.8X/0x%8.8X%8.8X, using 32", |
485 | acpi_gbl_FADT.facs, | 485 | acpi_gbl_FADT.facs, |
486 | ACPI_FORMAT_UINT64(acpi_gbl_FADT.Xfacs))); | 486 | ACPI_FORMAT_UINT64(acpi_gbl_FADT.Xfacs))); |
487 | 487 | ||
@@ -492,7 +492,7 @@ static void acpi_tb_validate_fadt(void) | |||
492 | (acpi_gbl_FADT.Xdsdt != (u64) acpi_gbl_FADT.dsdt)) { | 492 | (acpi_gbl_FADT.Xdsdt != (u64) acpi_gbl_FADT.dsdt)) { |
493 | ACPI_WARNING((AE_INFO, | 493 | ACPI_WARNING((AE_INFO, |
494 | "32/64X DSDT address mismatch in FADT - " | 494 | "32/64X DSDT address mismatch in FADT - " |
495 | "%8.8X/%8.8X%8.8X, using 32", | 495 | "0x%8.8X/0x%8.8X%8.8X, using 32", |
496 | acpi_gbl_FADT.dsdt, | 496 | acpi_gbl_FADT.dsdt, |
497 | ACPI_FORMAT_UINT64(acpi_gbl_FADT.Xdsdt))); | 497 | ACPI_FORMAT_UINT64(acpi_gbl_FADT.Xdsdt))); |
498 | 498 | ||
@@ -521,7 +521,7 @@ static void acpi_tb_validate_fadt(void) | |||
521 | if (address64->address && | 521 | if (address64->address && |
522 | (address64->bit_width != ACPI_MUL_8(length))) { | 522 | (address64->bit_width != ACPI_MUL_8(length))) { |
523 | ACPI_WARNING((AE_INFO, | 523 | ACPI_WARNING((AE_INFO, |
524 | "32/64X length mismatch in %s: %d/%d", | 524 | "32/64X length mismatch in %s: %u/%u", |
525 | name, ACPI_MUL_8(length), | 525 | name, ACPI_MUL_8(length), |
526 | address64->bit_width)); | 526 | address64->bit_width)); |
527 | } | 527 | } |
@@ -534,7 +534,7 @@ static void acpi_tb_validate_fadt(void) | |||
534 | if (!address64->address || !length) { | 534 | if (!address64->address || !length) { |
535 | ACPI_ERROR((AE_INFO, | 535 | ACPI_ERROR((AE_INFO, |
536 | "Required field %s has zero address and/or length:" | 536 | "Required field %s has zero address and/or length:" |
537 | " %8.8X%8.8X/%X", | 537 | " 0x%8.8X%8.8X/0x%X", |
538 | name, | 538 | name, |
539 | ACPI_FORMAT_UINT64(address64-> | 539 | ACPI_FORMAT_UINT64(address64-> |
540 | address), | 540 | address), |
@@ -550,7 +550,7 @@ static void acpi_tb_validate_fadt(void) | |||
550 | (!address64->address && length)) { | 550 | (!address64->address && length)) { |
551 | ACPI_WARNING((AE_INFO, | 551 | ACPI_WARNING((AE_INFO, |
552 | "Optional field %s has zero address or length: " | 552 | "Optional field %s has zero address or length: " |
553 | "%8.8X%8.8X/%X", | 553 | "0x%8.8X%8.8X/0x%X", |
554 | name, | 554 | name, |
555 | ACPI_FORMAT_UINT64(address64-> | 555 | ACPI_FORMAT_UINT64(address64-> |
556 | address), | 556 | address), |
@@ -600,7 +600,7 @@ static void acpi_tb_setup_fadt_registers(void) | |||
600 | (fadt_info_table[i].default_length != | 600 | (fadt_info_table[i].default_length != |
601 | target64->bit_width)) { | 601 | target64->bit_width)) { |
602 | ACPI_WARNING((AE_INFO, | 602 | ACPI_WARNING((AE_INFO, |
603 | "Invalid length for %s: %d, using default %d", | 603 | "Invalid length for %s: %u, using default %u", |
604 | fadt_info_table[i].name, | 604 | fadt_info_table[i].name, |
605 | target64->bit_width, | 605 | target64->bit_width, |
606 | fadt_info_table[i]. | 606 | fadt_info_table[i]. |
diff --git a/drivers/acpi/acpica/tbutils.c b/drivers/acpi/acpica/tbutils.c index 02723a9fb10c..f47a70e20063 100644 --- a/drivers/acpi/acpica/tbutils.c +++ b/drivers/acpi/acpica/tbutils.c | |||
@@ -309,7 +309,7 @@ acpi_status acpi_tb_verify_checksum(struct acpi_table_header *table, u32 length) | |||
309 | 309 | ||
310 | if (checksum) { | 310 | if (checksum) { |
311 | ACPI_WARNING((AE_INFO, | 311 | ACPI_WARNING((AE_INFO, |
312 | "Incorrect checksum in table [%4.4s] - %2.2X, should be %2.2X", | 312 | "Incorrect checksum in table [%4.4s] - 0x%2.2X, should be 0x%2.2X", |
313 | table->signature, table->checksum, | 313 | table->signature, table->checksum, |
314 | (u8) (table->checksum - checksum))); | 314 | (u8) (table->checksum - checksum))); |
315 | 315 | ||
@@ -496,7 +496,7 @@ acpi_tb_get_root_table_entry(u8 *table_entry, u32 table_entry_size) | |||
496 | /* Will truncate 64-bit address to 32 bits, issue warning */ | 496 | /* Will truncate 64-bit address to 32 bits, issue warning */ |
497 | 497 | ||
498 | ACPI_WARNING((AE_INFO, | 498 | ACPI_WARNING((AE_INFO, |
499 | "64-bit Physical Address in XSDT is too large (%8.8X%8.8X)," | 499 | "64-bit Physical Address in XSDT is too large (0x%8.8X%8.8X)," |
500 | " truncating", | 500 | " truncating", |
501 | ACPI_FORMAT_UINT64(address64))); | 501 | ACPI_FORMAT_UINT64(address64))); |
502 | } | 502 | } |
diff --git a/drivers/acpi/acpica/tbxfroot.c b/drivers/acpi/acpica/tbxfroot.c index dda6e8c497d3..fd2c07d1d3ac 100644 --- a/drivers/acpi/acpica/tbxfroot.c +++ b/drivers/acpi/acpica/tbxfroot.c | |||
@@ -134,7 +134,7 @@ acpi_status acpi_find_root_pointer(acpi_size *table_address) | |||
134 | ACPI_EBDA_PTR_LENGTH); | 134 | ACPI_EBDA_PTR_LENGTH); |
135 | if (!table_ptr) { | 135 | if (!table_ptr) { |
136 | ACPI_ERROR((AE_INFO, | 136 | ACPI_ERROR((AE_INFO, |
137 | "Could not map memory at %8.8X for length %X", | 137 | "Could not map memory at 0x%8.8X for length %u", |
138 | ACPI_EBDA_PTR_LOCATION, ACPI_EBDA_PTR_LENGTH)); | 138 | ACPI_EBDA_PTR_LOCATION, ACPI_EBDA_PTR_LENGTH)); |
139 | 139 | ||
140 | return_ACPI_STATUS(AE_NO_MEMORY); | 140 | return_ACPI_STATUS(AE_NO_MEMORY); |
@@ -159,7 +159,7 @@ acpi_status acpi_find_root_pointer(acpi_size *table_address) | |||
159 | ACPI_EBDA_WINDOW_SIZE); | 159 | ACPI_EBDA_WINDOW_SIZE); |
160 | if (!table_ptr) { | 160 | if (!table_ptr) { |
161 | ACPI_ERROR((AE_INFO, | 161 | ACPI_ERROR((AE_INFO, |
162 | "Could not map memory at %8.8X for length %X", | 162 | "Could not map memory at 0x%8.8X for length %u", |
163 | physical_address, ACPI_EBDA_WINDOW_SIZE)); | 163 | physical_address, ACPI_EBDA_WINDOW_SIZE)); |
164 | 164 | ||
165 | return_ACPI_STATUS(AE_NO_MEMORY); | 165 | return_ACPI_STATUS(AE_NO_MEMORY); |
@@ -191,7 +191,7 @@ acpi_status acpi_find_root_pointer(acpi_size *table_address) | |||
191 | 191 | ||
192 | if (!table_ptr) { | 192 | if (!table_ptr) { |
193 | ACPI_ERROR((AE_INFO, | 193 | ACPI_ERROR((AE_INFO, |
194 | "Could not map memory at %8.8X for length %X", | 194 | "Could not map memory at 0x%8.8X for length %u", |
195 | ACPI_HI_RSDP_WINDOW_BASE, | 195 | ACPI_HI_RSDP_WINDOW_BASE, |
196 | ACPI_HI_RSDP_WINDOW_SIZE)); | 196 | ACPI_HI_RSDP_WINDOW_SIZE)); |
197 | 197 | ||
diff --git a/drivers/acpi/acpica/utalloc.c b/drivers/acpi/acpica/utalloc.c index 3d706b8fd449..8f0896281567 100644 --- a/drivers/acpi/acpica/utalloc.c +++ b/drivers/acpi/acpica/utalloc.c | |||
@@ -340,7 +340,7 @@ void *acpi_ut_allocate(acpi_size size, | |||
340 | /* Report allocation error */ | 340 | /* Report allocation error */ |
341 | 341 | ||
342 | ACPI_WARNING((module, line, | 342 | ACPI_WARNING((module, line, |
343 | "Could not allocate size %X", (u32) size)); | 343 | "Could not allocate size %u", (u32) size)); |
344 | 344 | ||
345 | return_PTR(NULL); | 345 | return_PTR(NULL); |
346 | } | 346 | } |
diff --git a/drivers/acpi/acpica/utdelete.c b/drivers/acpi/acpica/utdelete.c index 16b51c69606a..ed794cd033ea 100644 --- a/drivers/acpi/acpica/utdelete.c +++ b/drivers/acpi/acpica/utdelete.c | |||
@@ -434,7 +434,7 @@ acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action) | |||
434 | 434 | ||
435 | default: | 435 | default: |
436 | 436 | ||
437 | ACPI_ERROR((AE_INFO, "Unknown action (%X)", action)); | 437 | ACPI_ERROR((AE_INFO, "Unknown action (0x%X)", action)); |
438 | break; | 438 | break; |
439 | } | 439 | } |
440 | 440 | ||
@@ -444,8 +444,8 @@ acpi_ut_update_ref_count(union acpi_operand_object *object, u32 action) | |||
444 | */ | 444 | */ |
445 | if (count > ACPI_MAX_REFERENCE_COUNT) { | 445 | if (count > ACPI_MAX_REFERENCE_COUNT) { |
446 | ACPI_WARNING((AE_INFO, | 446 | ACPI_WARNING((AE_INFO, |
447 | "Large Reference Count (%X) in object %p", count, | 447 | "Large Reference Count (0x%X) in object %p", |
448 | object)); | 448 | count, object)); |
449 | } | 449 | } |
450 | } | 450 | } |
451 | 451 | ||
diff --git a/drivers/acpi/acpica/uteval.c b/drivers/acpi/acpica/uteval.c index 7f5e734ce7f7..6dfdeb653490 100644 --- a/drivers/acpi/acpica/uteval.c +++ b/drivers/acpi/acpica/uteval.c | |||
@@ -307,7 +307,7 @@ acpi_ut_evaluate_object(struct acpi_namespace_node *prefix_node, | |||
307 | prefix_node, path, AE_TYPE); | 307 | prefix_node, path, AE_TYPE); |
308 | 308 | ||
309 | ACPI_ERROR((AE_INFO, | 309 | ACPI_ERROR((AE_INFO, |
310 | "Type returned from %s was incorrect: %s, expected Btypes: %X", | 310 | "Type returned from %s was incorrect: %s, expected Btypes: 0x%X", |
311 | path, | 311 | path, |
312 | acpi_ut_get_object_type_name(info->return_object), | 312 | acpi_ut_get_object_type_name(info->return_object), |
313 | expected_return_btypes)); | 313 | expected_return_btypes)); |
diff --git a/drivers/acpi/acpica/utmisc.c b/drivers/acpi/acpica/utmisc.c index 32982e2ac384..e8d0724ee403 100644 --- a/drivers/acpi/acpica/utmisc.c +++ b/drivers/acpi/acpica/utmisc.c | |||
@@ -205,7 +205,7 @@ acpi_status acpi_ut_allocate_owner_id(acpi_owner_id * owner_id) | |||
205 | /* Guard against multiple allocations of ID to the same location */ | 205 | /* Guard against multiple allocations of ID to the same location */ |
206 | 206 | ||
207 | if (*owner_id) { | 207 | if (*owner_id) { |
208 | ACPI_ERROR((AE_INFO, "Owner ID [%2.2X] already exists", | 208 | ACPI_ERROR((AE_INFO, "Owner ID [0x%2.2X] already exists", |
209 | *owner_id)); | 209 | *owner_id)); |
210 | return_ACPI_STATUS(AE_ALREADY_EXISTS); | 210 | return_ACPI_STATUS(AE_ALREADY_EXISTS); |
211 | } | 211 | } |
@@ -315,7 +315,7 @@ void acpi_ut_release_owner_id(acpi_owner_id * owner_id_ptr) | |||
315 | /* Zero is not a valid owner_iD */ | 315 | /* Zero is not a valid owner_iD */ |
316 | 316 | ||
317 | if (owner_id == 0) { | 317 | if (owner_id == 0) { |
318 | ACPI_ERROR((AE_INFO, "Invalid OwnerId: %2.2X", owner_id)); | 318 | ACPI_ERROR((AE_INFO, "Invalid OwnerId: 0x%2.2X", owner_id)); |
319 | return_VOID; | 319 | return_VOID; |
320 | } | 320 | } |
321 | 321 | ||
@@ -341,7 +341,7 @@ void acpi_ut_release_owner_id(acpi_owner_id * owner_id_ptr) | |||
341 | acpi_gbl_owner_id_mask[index] ^= bit; | 341 | acpi_gbl_owner_id_mask[index] ^= bit; |
342 | } else { | 342 | } else { |
343 | ACPI_ERROR((AE_INFO, | 343 | ACPI_ERROR((AE_INFO, |
344 | "Release of non-allocated OwnerId: %2.2X", | 344 | "Release of non-allocated OwnerId: 0x%2.2X", |
345 | owner_id + 1)); | 345 | owner_id + 1)); |
346 | } | 346 | } |
347 | 347 | ||
diff --git a/drivers/acpi/acpica/utmutex.c b/drivers/acpi/acpica/utmutex.c index 55d014ed6d55..058b3df48271 100644 --- a/drivers/acpi/acpica/utmutex.c +++ b/drivers/acpi/acpica/utmutex.c | |||
@@ -258,7 +258,7 @@ acpi_status acpi_ut_acquire_mutex(acpi_mutex_handle mutex_id) | |||
258 | acpi_gbl_mutex_info[mutex_id].thread_id = this_thread_id; | 258 | acpi_gbl_mutex_info[mutex_id].thread_id = this_thread_id; |
259 | } else { | 259 | } else { |
260 | ACPI_EXCEPTION((AE_INFO, status, | 260 | ACPI_EXCEPTION((AE_INFO, status, |
261 | "Thread %p could not acquire Mutex [%X]", | 261 | "Thread %p could not acquire Mutex [0x%X]", |
262 | ACPI_CAST_PTR(void, this_thread_id), mutex_id)); | 262 | ACPI_CAST_PTR(void, this_thread_id), mutex_id)); |
263 | } | 263 | } |
264 | 264 | ||
@@ -297,7 +297,7 @@ acpi_status acpi_ut_release_mutex(acpi_mutex_handle mutex_id) | |||
297 | */ | 297 | */ |
298 | if (acpi_gbl_mutex_info[mutex_id].thread_id == ACPI_MUTEX_NOT_ACQUIRED) { | 298 | if (acpi_gbl_mutex_info[mutex_id].thread_id == ACPI_MUTEX_NOT_ACQUIRED) { |
299 | ACPI_ERROR((AE_INFO, | 299 | ACPI_ERROR((AE_INFO, |
300 | "Mutex [%X] is not acquired, cannot release", | 300 | "Mutex [0x%X] is not acquired, cannot release", |
301 | mutex_id)); | 301 | mutex_id)); |
302 | 302 | ||
303 | return (AE_NOT_ACQUIRED); | 303 | return (AE_NOT_ACQUIRED); |
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; |