Skip to content

RFC Eliminate references to logfile/loglevel global vars

Eduardo Habkost qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2Create macros that will help define the logging APIqemu-log.h+86 -00 replies
2/2Big conversion to the new logging macros+0 -02 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [RFC PATCH 0/2] Eliminate references to logfile/loglevel global vars

Hi,

This is actually a long 63-patch series, but for a first request for comments, I am splitting it in two parts:

1) A set of macros are introduced for almost all usage patterns of the logfile/loglevel global variables.
2) 62 patches that convert almost all references to the logfile/loglevel global variables to use those macros (the PATCH 1/2 e-mail actually has pointers to the patches, either as small individual patches, or as a big single patch file).

These macros are _not_ a proposal for a definitive new logging API. They are just a step for it: a way to group all usage patterns of the logfile/loglevel variables on a single place. After all usage of those variables is eliminated, we can more easily refactor the code to have a proper logging API.

This series needs my previous debugging-#ifdef cleanup series to be applied before it.

It shouldn't change any qemu behavior, but just move all references to the logging global variables to a single place, keeping exactly the same behaviour.

Signature · 1 line
Eduardo