diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2012-09-27 14:44:22 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2012-09-28 10:39:28 +0100 |
commit | e8fd8757c89abbd38571092bbb987650b7658aec (patch) | |
tree | 67863822fcd995dad967b9dcaf05fc65f9cb0420 /src/internal.h | |
parent | 0225c566f4d58dac9cd1071c97c495c5beaf653e (diff) | |
download | libvirt-e8fd8757c89abbd38571092bbb987650b7658aec.tar.gz |
Change logging category parameter into an enum
The 'const char *category' parameter only has a few possible
values now that the filename has been separated. Turn this
parameter into an enum instead.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'src/internal.h')
-rw-r--r-- | src/internal.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/internal.h b/src/internal.h index 3545404acd..77210e5331 100644 --- a/src/internal.h +++ b/src/internal.h @@ -349,7 +349,8 @@ # define PROBE_EXPAND(NAME, ARGS) NAME(ARGS) # define PROBE(NAME, FMT, ...) \ - VIR_DEBUG_INT("trace", __FILE__, __LINE__, __func__, \ + VIR_DEBUG_INT(VIR_LOG_FROM_TRACE, \ + __FILE__, __LINE__, __func__, \ #NAME ": " FMT, __VA_ARGS__); \ if (LIBVIRT_ ## NAME ## _ENABLED()) { \ PROBE_EXPAND(LIBVIRT_ ## NAME, \ @@ -357,7 +358,8 @@ } # else # define PROBE(NAME, FMT, ...) \ - VIR_DEBUG_INT("trace", __FILE__, __LINE__, __func__, \ + VIR_DEBUG_INT(VIR_LOG_FROM_TRACE, \ + __FILE__, __LINE__, __func__, \ #NAME ": " FMT, __VA_ARGS__); # endif |