aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxc/xentoollog.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2010-05-28 09:38:56 +0100
committerKeir Fraser <keir.fraser@citrix.com>2010-05-28 09:38:56 +0100
commit455a17fea9f9a5d1a4fa7adbc63a2e8cd5d81d4a (patch)
tree91597d3179a174869dc8391c700c893ebab2de34 /tools/libxc/xentoollog.h
parenta2b5973ee0d143545a62903c629f800dc25f2837 (diff)
downloadxen-455a17fea9f9a5d1a4fa7adbc63a2e8cd5d81d4a.tar.gz
xen-455a17fea9f9a5d1a4fa7adbc63a2e8cd5d81d4a.tar.bz2
xen-455a17fea9f9a5d1a4fa7adbc63a2e8cd5d81d4a.zip
xl/libxtl: Remove glitch in xl migrate log output
* Provide a new XTL_STDIOSTREAM_HIDE_PROGRESS flag in the stdio logger * Provide a way to adjust the flags after logger setup * Use these to disable progress output from the migration receiver, as the sender is also sending progress information. Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'tools/libxc/xentoollog.h')
-rw-r--r--tools/libxc/xentoollog.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/tools/libxc/xentoollog.h b/tools/libxc/xentoollog.h
index d4671682ab..40ac3c418f 100644
--- a/tools/libxc/xentoollog.h
+++ b/tools/libxc/xentoollog.h
@@ -51,8 +51,9 @@ struct xentoollog_logger {
/*---------- facilities for consuming log messages ----------*/
-#define XTL_STDIOSTREAM_SHOW_PID 01u
-#define XTL_STDIOSTREAM_SHOW_DATE 02u
+#define XTL_STDIOSTREAM_SHOW_PID 01u
+#define XTL_STDIOSTREAM_SHOW_DATE 02u
+#define XTL_STDIOSTREAM_HIDE_PROGRESS 04u
typedef struct xentoollog_logger_stdiostream xentoollog_logger_stdiostream;
@@ -61,6 +62,12 @@ xentoollog_logger_stdiostream *xtl_createlogger_stdiostream
/* may return 0 if malloc fails, in which case error was logged */
/* destroy on this logger does not close the file */
+void xtl_stdiostream_set_minlevel(xentoollog_logger_stdiostream*,
+ xentoollog_level min_level);
+void xtl_stdiostream_adjust_flags(xentoollog_logger_stdiostream*,
+ unsigned set_flags, unsigned clear_flags);
+ /* if set_flags and clear_flags overlap, set_flags takes precedence */
+
void xtl_logger_destroy(struct xentoollog_logger *logger /* 0 is ok */);