diff options
author | Blue Swirl | 2012-06-03 18:35:32 +0200 |
---|---|---|
committer | Blue Swirl | 2012-06-21 20:45:18 +0200 |
commit | eeacee4d8652d7f3b9224cfe0707c0ed87cc0e96 (patch) | |
tree | 124da0ad9aa9593d6e3333ac0f9ef86a377491b6 /tcg/tci | |
parent | qemu-log: move logging to qemu-log.c (diff) | |
download | qemu-eeacee4d8652d7f3b9224cfe0707c0ed87cc0e96.tar.gz qemu-eeacee4d8652d7f3b9224cfe0707c0ed87cc0e96.tar.xz qemu-eeacee4d8652d7f3b9224cfe0707c0ed87cc0e96.zip |
qemu-log: cleanup
Don't use global variables directly but via accessor functions. Rename globals.
Convert macros to functions, add GCC format attributes.
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'tcg/tci')
-rw-r--r-- | tcg/tci/tcg-target.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tcg/tci/tcg-target.c b/tcg/tci/tcg-target.c index 453f1875e2..d0a368d99a 100644 --- a/tcg/tci/tcg-target.c +++ b/tcg/tci/tcg-target.c @@ -878,7 +878,7 @@ static void tcg_target_init(TCGContext *s) #if defined(CONFIG_DEBUG_TCG_INTERPRETER) const char *envval = getenv("DEBUG_TCG"); if (envval) { - loglevel = strtol(envval, NULL, 0); + cpu_set_log(strtol(envval, NULL, 0)); } #endif |