From 15af3b47e22c2c769afe5c8417c3f633baae6a6b Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Thu, 20 Mar 2014 02:34:06 +0100 Subject: Only complain once per boot about Xen console smash * xen/console.c (hypputc): Make `complain' variable static. --- xen/console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xen') diff --git a/xen/console.c b/xen/console.c index 884376f..313b934 100644 --- a/xen/console.c +++ b/xen/console.c @@ -47,7 +47,7 @@ int hypputc(int c) hyp_console_io(CONSOLEIO_write, 1, kvtolin(&d)); } else { spl_t spl = splhigh(); - int complain; + static int complain; simple_lock(&outlock); while (hyp_ring_smash(console->out, console->out_prod, console->out_cons)) { if (!complain) { -- cgit v1.2.3