diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2006-05-11 07:24:04 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2006-05-11 07:24:04 +0000 |
commit | 344e3aa975c9861172319ed11cee1a4a85598cd6 (patch) | |
tree | 9bd7b5be47e9a8c1ec092546fcbc38b6dba8d723 /usr.bin/kdump | |
parent | 241d94dea6c383c2e9bde9557602941795559faf (diff) |
cedric points out 0xff mask isn't needed with unsigned chars
Diffstat (limited to 'usr.bin/kdump')
-rw-r--r-- | usr.bin/kdump/kdump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c index 94d6dfccc70..f1e1a816177 100644 --- a/usr.bin/kdump/kdump.c +++ b/usr.bin/kdump/kdump.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kdump.c,v 1.34 2006/05/11 07:15:08 tedu Exp $ */ +/* $OpenBSD: kdump.c,v 1.35 2006/05/11 07:24:03 tedu Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static char sccsid[] = "@(#)kdump.c 8.4 (Berkeley) 4/28/95"; #endif -static const char rcsid[] = "$OpenBSD: kdump.c,v 1.34 2006/05/11 07:15:08 tedu Exp $"; +static const char rcsid[] = "$OpenBSD: kdump.c,v 1.35 2006/05/11 07:24:03 tedu Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -543,7 +543,7 @@ ktrgenio(struct ktr_genio *ktr, int len) putchar('\t'); col = 8; for (i = 0; i < datalen; i++) { - printf("%02x", dp[i] & 0xff); + printf("%02x", dp[i]); col += 3; if (i < datalen - 1) { if (col + 3 > screenwidth) { @@ -566,7 +566,7 @@ ktrgenio(struct ktr_genio *ktr, int len) if (i+j >= datalen) printf(" "); else - printf("%02x ", dp[i+j] & 0xff); + printf("%02x ", dp[i+j]); } putchar(' '); for (j = 0; j < bpl; j++) { |