Skip to content

Commit

Permalink
Utilities: Update debug output
Browse files Browse the repository at this point in the history
Enhancement of miscellaneous debug output.
  • Loading branch information
acpibob committed Dec 8, 2016
1 parent 28b6c08 commit 082b5b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions source/components/utilities/utdecode.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ AcpiUtGetObjectTypeName (
if (!ObjDesc)
{
ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, "Null Object Descriptor\n"));
return_PTR ("[NULL Object Descriptor]");
return_STR ("[NULL Object Descriptor]");
}

/* These descriptor types share a common area */
Expand All @@ -354,7 +354,7 @@ AcpiUtGetObjectTypeName (
ACPI_GET_DESCRIPTOR_TYPE (ObjDesc),
AcpiUtGetDescriptorName (ObjDesc), ObjDesc));

return_PTR ("Invalid object");
return_STR ("Invalid object");
}

return_STR (AcpiUtGetTypeName (ObjDesc->Common.Type));
Expand Down
5 changes: 3 additions & 2 deletions source/components/utilities/utdelete.c
Original file line number Diff line number Diff line change
Expand Up @@ -521,8 +521,9 @@ AcpiUtUpdateRefCount (
}

ACPI_DEBUG_PRINT ((ACPI_DB_ALLOCATIONS,
"Obj %p Type %.2X Refs %.2X [Incremented]\n",
Object, Object->Common.Type, NewCount));
"Obj %p Type %.2X [%s] Refs %.2X [Incremented]\n",
Object, Object->Common.Type,
AcpiUtGetObjectTypeName (Object), NewCount));
break;

case REF_DECREMENT:
Expand Down

0 comments on commit 082b5b3

Please sign in to comment.