Skip to content

Commit

Permalink
opregion: improve logging in trace_region_error
Browse files Browse the repository at this point in the history
Log the operation region type instead of its address, which is for the
most part completely useless in that context.

Signed-off-by: Daniil Tatianin <99danilt@gmail.com>
  • Loading branch information
d-tatianin committed May 29, 2024
1 parent 2246dc9 commit f82922a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/opregion.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ void uacpi_trace_region_error(
op_region = uacpi_namespace_node_get_object(node)->op_region;

uacpi_error(
"%s operation region %s@%p: %s\n",
message, path, op_region, uacpi_status_to_string(ret)
"%s (%s) operation region %s: %s\n",
message, uacpi_address_space_to_string(op_region->space),
path, uacpi_status_to_string(ret)
);
uacpi_free_dynamic_string(path);
}
Expand Down

0 comments on commit f82922a

Please sign in to comment.