Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sparc64/sparc64 clockattach(): print the hostid as ...



details:   https://anonhg.NetBSD.org/src/rev/096f37fb5997
branches:  trunk
changeset: 500832:096f37fb5997
user:      mrg <mrg%NetBSD.org@localhost>
date:      Tue Dec 19 05:09:06 2000 +0000

description:
clockattach(): print the hostid as a 32-bit value to avoid 64-bit sign extension.

diffstat:

 sys/arch/sparc64/sparc64/clock.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 621782c6b73f -r 096f37fb5997 sys/arch/sparc64/sparc64/clock.c
--- a/sys/arch/sparc64/sparc64/clock.c  Tue Dec 19 04:39:19 2000 +0000
+++ b/sys/arch/sparc64/sparc64/clock.c  Tue Dec 19 05:09:06 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: clock.c,v 1.35 2000/12/17 21:42:21 pk Exp $ */
+/*     $NetBSD: clock.c,v 1.36 2000/12/19 05:09:06 mrg Exp $ */
 
 /*
  * Copyright (c) 1992, 1993
@@ -384,7 +384,7 @@
        h |= idp->id_hostid[1] << 8;
        h |= idp->id_hostid[2];
        hostid = h;
-       printf(": hostid %lx\n", (long)hostid);
+       printf(": hostid %x\n", (u_int)hostid);
 
        idprom = idp;
 }



Home | Main Index | Thread Index | Old Index