Re: [PATCH 4/4] clock: Define and use new clock_display_freq()

2020-12-09 Thread Luc Michel
On 12/8/20 7:15 PM, Peter Maydell wrote: It's common to want to print a human-readable indication of a clock's frequency. Provide a utility function in the clock API to return a string which is a displayable representation of the frequency, and use it in qdev-monitor.c. Before: (qemu) info q

Re: [PATCH 4/4] clock: Define and use new clock_display_freq()

2020-12-08 Thread Richard Henderson
On 12/8/20 12:15 PM, Peter Maydell wrote: > It's common to want to print a human-readable indication of a clock's > frequency. Provide a utility function in the clock API to return a > string which is a displayable representation of the frequency, > and use it in qdev-monitor.c. > > Before: > >

[PATCH 4/4] clock: Define and use new clock_display_freq()

2020-12-08 Thread Peter Maydell
It's common to want to print a human-readable indication of a clock's frequency. Provide a utility function in the clock API to return a string which is a displayable representation of the frequency, and use it in qdev-monitor.c. Before: (qemu) info qtree [...] dev: xilinx,zynq_slcr, id ""