diff mbox

[V3,08/41] xen/arm: Export early_vprintk

Message ID 1368152307-598-9-git-send-email-julien.grall@linaro.org
State Superseded, archived
Headers show

Commit Message

Julien Grall May 10, 2013, 2:17 a.m. UTC
Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
 xen/arch/arm/early_printk.c        |    2 +-
 xen/include/asm-arm/early_printk.h |    4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

Comments

Ian Campbell May 10, 2013, 8:46 a.m. UTC | #1
On Fri, 2013-05-10 at 03:17 +0100, Julien Grall wrote:
> Signed-off-by: Julien Grall <julien.grall@linaro.org>

Acked-by: Ian Campbell <ian.campbell@citrix.com>
diff mbox

Patch

diff --git a/xen/arch/arm/early_printk.c b/xen/arch/arm/early_printk.c
index 0f99a43..65fa912 100644
--- a/xen/arch/arm/early_printk.c
+++ b/xen/arch/arm/early_printk.c
@@ -42,7 +42,7 @@  static void __init early_puts(const char *s)
     }
 }
 
-static void __init early_vprintk(const char *fmt, va_list args)
+void __init early_vprintk(const char *fmt, va_list args)
 {
     vsnprintf(buf, sizeof(buf), fmt, args);
     early_puts(buf);
diff --git a/xen/include/asm-arm/early_printk.h b/xen/include/asm-arm/early_printk.h
index a0297a7..7083199 100644
--- a/xen/include/asm-arm/early_printk.h
+++ b/xen/include/asm-arm/early_printk.h
@@ -11,14 +11,18 @@ 
 #define __ARM_EARLY_PRINTK_H__
 
 #include <xen/config.h>
+#include <xen/init.h>
+#include <xen/stdarg.h>
 
 #ifdef EARLY_UART_ADDRESS
 
+void __init early_vprintk(const char *fmt, va_list args);
 void early_printk(const char *fmt, ...);
 void early_panic(const char *fmt, ...) __attribute__((noreturn));
 
 #else
 
+static inline void __init early_vprintk(const char *fmt, va_list args) {}
 static inline void early_printk(const char *fmt, ...) {}
 static inline void  __attribute__((noreturn)) early_panic(const char *fmt, ...) {while(1);}