Module Name: src Committed By: andvar Date: Sun Dec 17 15:06:34 UTC 2023
Modified Files: src/sys/arch/vax/vax: crx.c Log Message: Fix format specifier for ka820port_ptr->csr. Fixed CRXDEBUG build option for vax. To generate a diff of this commit: cvs rdiff -u -r1.15 -r1.16 src/sys/arch/vax/vax/crx.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/arch/vax/vax/crx.c diff -u src/sys/arch/vax/vax/crx.c:1.15 src/sys/arch/vax/vax/crx.c:1.16 --- src/sys/arch/vax/vax/crx.c:1.15 Fri Jul 25 08:10:35 2014 +++ src/sys/arch/vax/vax/crx.c Sun Dec 17 15:06:33 2023 @@ -1,4 +1,4 @@ -/* $NetBSD: crx.c,v 1.15 2014/07/25 08:10:35 dholland Exp $ */ +/* $NetBSD: crx.c,v 1.16 2023/12/17 15:06:33 andvar Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. * All rights reserved. @@ -38,7 +38,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: crx.c,v 1.15 2014/07/25 08:10:35 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: crx.c,v 1.16 2023/12/17 15:06:33 andvar Exp $"); #include <sys/param.h> #include <sys/time.h> @@ -149,7 +149,7 @@ crxrw(dev_t dev, struct uio *uio, int fl #if CRXDEBUG printf("crxrw(csa%d): %s\n", rx50unit(dev), uio->uio_rw==UIO_READ?"read":"write"); - printf("crxrw: ka820port = %x\n", ka820port_ptr->csr); + printf("crxrw: ka820port = %lx\n", ka820port_ptr->csr); #endif /* enforce whole-sector I/O */ if ((uio->uio_offset & 511) || (uio->uio_resid & 511)) @@ -202,7 +202,7 @@ crxrw(dev_t dev, struct uio *uio, int fl #endif #if CRXDEBUG printf("crx: going off\n"); - printf("crxrw: ka820port = %x\n", ka820port_ptr->csr); + printf("crxrw: ka820port = %lx\n", ka820port_ptr->csr); #endif rxaddr->rxgo = 0; /* start it up */ ka820port_ptr->csr |= KA820PORT_RXIRQ; @@ -210,7 +210,7 @@ crxrw(dev_t dev, struct uio *uio, int fl while ((rs->rs_flags & RS_DONE) == 0) { #if CRXDEBUG printf("crx: sleeping on I/O\n"); - printf("crxopen: ka820port = %x\n", ka820port_ptr->csr); + printf("crxopen: ka820port = %lx\n", ka820port_ptr->csr); #endif (void) tsleep(&rs->rs_blkno, PRIBIO, "crxrw", 0); }