[1/2] dtc: Refactor printing of property values in -Odts mode

Jon Loeliger jdl at jdl.com
Fri Nov 9 02:25:02 EST 2007


So, like, the other day David Gibson mumbled:
> Currently the main recursive tree printing function,
> write_tree_source_node(), calls guess_type() to apply heuristics to
> see how to print a property value, then calls the appropriate
> write_propval_*() function to print it.
> 
> However, future heuristics for handling internal labels and the like
> don't work well this way.  Therefore, this patch refactors things to
> have write_tree_source_node() call a new write_propval() function,
> which incorporates the heurstic logic from guess_type() and also calls
> the right function to do the actual printing.
> 
> No behavioural change.
> 
> Signed-off-by: David Gibson <david at gibson.dropbear.id.au>

Applied.

jdl



More information about the Linuxppc-dev mailing list