summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2014-03-20 02:34:06 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2014-03-20 02:34:06 +0100
commit15af3b47e22c2c769afe5c8417c3f633baae6a6b (patch)
tree4d398448f4a76c43fa39db72295c2c7033073b13
parent7f862cffb41ba2a5110bc47ebe54feb5b3ffc8a0 (diff)
Only complain once per boot about Xen console smash
* xen/console.c (hypputc): Make `complain' variable static.
-rw-r--r--xen/console.c2
1 files changed, 1 insertions, 1 deletions
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) {