]> xenbits.xensource.com Git - qemu-xen.git/commit
hw/xen: Add xs_node_read() helper function
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 10 Jan 2025 09:35:30 +0000 (10:35 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Thu, 24 Apr 2025 08:51:17 +0000 (10:51 +0200)
commit82354c9f2431a1c35bc12297697b8ab48f206f27
tree488ec691c9dd36ee661eff359890a57a9fa35b11
parent3fdb3cd3a27a22a050c7d27126a24807a7a45745
hw/xen: Add xs_node_read() helper function

This returns the full contents of the node, having created the node path
from the printf-style format string provided in its arguments.

This will save various callers from having to do so for themselves (and
from using xs_node_scanf() with the non-portable %ms format string.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
[remove double newline and constify trace parameters]
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
hw/xen/trace-events
hw/xen/xen-bus-helper.c
include/hw/xen/xen-bus-helper.h