Re: [PATCH v2 0/4] printf: Add struct range print specifier
From: metux
Date: Wed Oct 30 2024 - 06:52:03 EST
On 26.10.24 02:46, Ira Weiny wrote:
Support for the Compute Express Link (CXL) Dynamic Capacity Devices
(DCD) have grown a number of uses to print struct range.[1] Support for
a printf specifier '%pra' was being worked within a large series and has
garnered a number of comments and discussion.
This is just printing out hex dump of a memory range, correct ?
What I'm looking for quite some time is a sane way for dumping structs
in a human readable form (field: value pairs, using their actual types
eg. int vs string, ...).
Any idea to do that in a generic way ?
(potentially using debug info ?)
--mtx