|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH 19/36] xen/console: introduce printk_common()
From: Denis Mukhin <dmukhin@xxxxxxxx>
Introduce new printk() variant for convenient printouts which skip '(XEN)'
prefix on xen console. This is needed for the case when physical console is
owned by a domain w/ in-hypervisor UART emulation enabled.
Signed-off-by: Denis Mukhin <dmukhin@xxxxxxxx>
---
xen/drivers/char/console.c | 8 ++++++++
xen/include/xen/lib.h | 3 +++
2 files changed, 11 insertions(+)
diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c
index
86bf899ada8f8221ffc77bcffb1f58777a22198e..f034ce5aab3f3bf59b0df9fa583ee9ce32dbf665
100644
--- a/xen/drivers/char/console.c
+++ b/xen/drivers/char/console.c
@@ -968,6 +968,14 @@ void printk(const char *fmt, ...)
va_end(args);
}
+void printk_common(const char *fmt, ...)
+{
+ va_list args;
+ va_start(args, fmt);
+ vprintk_common("", fmt, args);
+ va_end(args);
+}
+
void guest_printk(const struct domain *d, const char *fmt, ...)
{
va_list args;
diff --git a/xen/include/xen/lib.h b/xen/include/xen/lib.h
index
81b722ea3e801e9089aaf8758249feb3a758c4f7..8a7ff2e8af9089796ff28ef8d01c00e9845782ca
100644
--- a/xen/include/xen/lib.h
+++ b/xen/include/xen/lib.h
@@ -61,6 +61,9 @@ debugtrace_printk(const char *fmt, ...) {}
extern void printk(const char *fmt, ...)
__attribute__ ((format (printf, 1, 2), cold));
+extern void printk_common(const char *fmt, ...)
+ __attribute__ ((format (printf, 1, 2)));
+
#define printk_once(fmt, args...) \
({ \
static bool __read_mostly once_; \
--
2.34.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |