mbox series

[v2,0/3] qdev-clock: Minor improvements to the Clock API

Message ID 20201001164322.1585392-1-f4bug@amsat.org
Headers show
Series qdev-clock: Minor improvements to the Clock API | expand

Message

Philippe Mathieu-Daudé Oct. 1, 2020, 4:43 p.m. UTC
Handy patches while using the Clock API:
- display frequency in SI scaled unit
- display error hint when device lack clock support

Since v1:
- Avoid out-of-bound array access (Luc)

Patch missing review:
- #1 "Introduce freq_to_str() to display Hertz units"

Philippe Mathieu-Daudé (3):
  util/cutils: Introduce freq_to_str() to display Hertz units
  qdev-monitor: Display frequencies scaled to SI unit
  hw/qdev-clock: Display error hint when clock is missing from device

 include/qemu/cutils.h | 12 ++++++++++++
 hw/core/qdev-clock.c  | 11 +++++++++++
 qdev-monitor.c        |  8 +++++---
 util/cutils.c         | 14 ++++++++++++++
 4 files changed, 42 insertions(+), 3 deletions(-)