diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-10 22:43:01 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-10 22:43:01 +0000 |
commit | 5a97bf016964824135dc7ab20da891ff2d97e6ce (patch) | |
tree | 11eb2d614fe6b8c527bfeedaae4f8d485b154625 | |
parent | 04252f9535007b6ed1c0267900600b2ecf9c23a7 (diff) |
from bde@freebsd.org; if printregs() sees no bit names, avoid using them
-rw-r--r-- | bin/mt/mt.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/mt/mt.c b/bin/mt/mt.c index cea4c9bdda7..ee87ff2fda7 100644 --- a/bin/mt/mt.c +++ b/bin/mt/mt.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mt.c,v 1.12 1996/08/10 22:25:58 deraadt Exp $ */ +/* $OpenBSD: mt.c,v 1.13 1996/08/10 22:43:00 deraadt Exp $ */ /* $NetBSD: mt.c,v 1.14.2.1 1996/05/27 15:12:11 mrg Exp $ */ /* @@ -44,7 +44,7 @@ static char copyright[] = #if 0 static char sccsid[] = "@(#)mt.c 8.2 (Berkeley) 6/6/93"; #else -static char rcsid[] = "$OpenBSD: mt.c,v 1.12 1996/08/10 22:25:58 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: mt.c,v 1.13 1996/08/10 22:43:00 deraadt Exp $"; #endif #endif /* not lint */ @@ -287,6 +287,8 @@ printreg(s, v, bits) printf("%s=%o", s, v); else printf("%s=%x", s, v); + if (!bits) + return; bits++; if (v && bits) { putchar('<'); |