summaryrefslogtreecommitdiff
path: root/sys/lib/libsa
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1999-08-16 09:21:39 +0000
committerJason Downs <downsj@cvs.openbsd.org>1999-08-16 09:21:39 +0000
commit276e7ec4c50165253b37dc2c8373edbb66a58090 (patch)
treec0f2abb09ee7f830a33954320c000dae84951595 /sys/lib/libsa
parent64b6181e5110e7514c8110ad4c55197dc997db66 (diff)
Allow the twiddler to be disabled via a global.
Diffstat (limited to 'sys/lib/libsa')
-rw-r--r--sys/lib/libsa/printf.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/lib/libsa/printf.c b/sys/lib/libsa/printf.c
index c43647a97d0..3c9ab1aba8b 100644
--- a/sys/lib/libsa/printf.c
+++ b/sys/lib/libsa/printf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: printf.c,v 1.13 1998/06/12 12:09:12 d Exp $ */
+/* $OpenBSD: printf.c,v 1.14 1999/08/16 09:21:38 downsj Exp $ */
/* $NetBSD: printf.c,v 1.10 1996/11/30 04:19:21 gwr Exp $ */
/*-
@@ -242,11 +242,15 @@ kprintn(put, ul, base)
} while (p > buf);
}
+int donottwiddle = 0;
+
void
twiddle()
{
static int pos;
- putchar("|/-\\"[pos++ & 3]);
- putchar('\b');
+ if (!donottwiddle) {
+ putchar("|/-\\"[pos++ & 3]);
+ putchar('\b');
+ }
}