On 9/10/25 18:03, Daniel P. Berrangé wrote:
Both the error-report and log APIs can optional emit a timestamp
as a prefix on messages, with the '-msg timestamp=on' command
line flag is set.

Convert them to the new message API for formatting the context
prefix, guaranteeing they will have matching behaviour going
forward.

There is no change in output format for either logs or errors
with this conversion.

Signed-off-by: Daniel P. Berrangé<berra...@redhat.com>
---
  include/qemu/error-report.h    |  1 -
  system/vl.c                    |  7 ++++++-
  tests/unit/test-error-report.c |  3 ++-
  util/error-report.c            | 17 ++---------------
  util/log.c                     | 21 ++++-----------------
  5 files changed, 14 insertions(+), 35 deletions(-)

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>

r~

Reply via email to