Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/sgimips/dev fix off-by-one in revision print



details:   https://anonhg.NetBSD.org/src/rev/f4acacc0b656
branches:  trunk
changeset: 565493:f4acacc0b656
user:      pooka <pooka%NetBSD.org@localhost>
date:      Sat Apr 10 19:07:06 2004 +0000

description:
fix off-by-one in revision print

diffstat:

 sys/arch/sgimips/dev/pic.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 563bdacb4b49 -r f4acacc0b656 sys/arch/sgimips/dev/pic.c
--- a/sys/arch/sgimips/dev/pic.c        Sat Apr 10 19:06:33 2004 +0000
+++ b/sys/arch/sgimips/dev/pic.c        Sat Apr 10 19:07:06 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: pic.c,v 1.4 2004/04/10 19:06:33 pooka Exp $         */
+/* $NetBSD: pic.c,v 1.5 2004/04/10 19:07:06 pooka Exp $         */
 
 /*
  * Copyright (c) 2002 Steve Rumble
@@ -103,7 +103,7 @@
 
        reg = bus_space_read_4(psc.iot, psc.ioh, PIC_SYSID);
        reg = (reg >> PIC_SYSID_REVSHIFT) & PIC_SYSID_REVMASK;
-       printf("\npic0: Revision %c", reg + 65);
+       printf("\npic0: Revision %c", reg + 64);
 
        /* enable refresh, set big-endian, memory parity, allow slave access */
        reg = bus_space_read_4(psc.iot, psc.ioh, PIC_CPUCTRL);



Home | Main Index | Thread Index | Old Index