diff options
author | 1999-08-16 09:21:38 +0000 | |
---|---|---|
committer | 1999-08-16 09:21:38 +0000 | |
commit | 4926b82bdcb401e31c669825959ced35152f05bb (patch) | |
tree | 75471c6b23a9b652b13296408f85eeff3690550d | |
parent | Remove unneeded ifdefs. (diff) | |
download | wireguard-openbsd-4926b82bdcb401e31c669825959ced35152f05bb.tar.xz wireguard-openbsd-4926b82bdcb401e31c669825959ced35152f05bb.zip |
Allow the twiddler to be disabled via a global.
-rw-r--r-- | sys/lib/libsa/printf.c | 10 |
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'); + } } |