Displaying 2 results from an estimated 2 matches for "lgargs".
Did you mean:
largs
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 13/13] Hack to get output
...=========================
--- work-pv.orig/kernel/printk.c
+++ work-pv/kernel/printk.c
@@ -499,12 +499,17 @@ static int have_callable_console(void)
* printf(3)
*/
+extern void lguest_vprint(const char *fmt, va_list ap);
asmlinkage int printk(const char *fmt, ...)
{
va_list args;
+ va_list lgargs;
int r;
va_start(args, fmt);
+ va_copy(lgargs, args);
+ lguest_vprint(fmt, lgargs);
+ va_end(lgargs);
r = vprintk(fmt, args);
va_end(args);
--
2007 Apr 18
0
[RFC/PATCH LGUEST X86_64 13/13] Hack to get output
...=========================
--- work-pv.orig/kernel/printk.c
+++ work-pv/kernel/printk.c
@@ -499,12 +499,17 @@ static int have_callable_console(void)
* printf(3)
*/
+extern void lguest_vprint(const char *fmt, va_list ap);
asmlinkage int printk(const char *fmt, ...)
{
va_list args;
+ va_list lgargs;
int r;
va_start(args, fmt);
+ va_copy(lgargs, args);
+ lguest_vprint(fmt, lgargs);
+ va_end(lgargs);
r = vprintk(fmt, args);
va_end(args);
--