Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/fs/adosfs Fix compiler warnings after 64bit daddr_t change.
details: https://anonhg.NetBSD.org/src/rev/78ef778e4f26
branches: trunk
changeset: 542362:78ef778e4f26
user: lonewolf <lonewolf%NetBSD.org@localhost>
date: Mon Jan 27 04:08:45 2003 +0000
description:
Fix compiler warnings after 64bit daddr_t change.
diffstat:
sys/fs/adosfs/adutil.c | 10 +++++-----
sys/fs/adosfs/advnops.c | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
diffs (88 lines):
diff -r 6d68b142d19d -r 78ef778e4f26 sys/fs/adosfs/adutil.c
--- a/sys/fs/adosfs/adutil.c Mon Jan 27 03:33:36 2003 +0000
+++ b/sys/fs/adosfs/adutil.c Mon Jan 27 04:08:45 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: adutil.c,v 1.1 2002/12/23 17:15:26 jdolecek Exp $ */
+/* $NetBSD: adutil.c,v 1.2 2003/01/27 04:08:45 lonewolf Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: adutil.c,v 1.1 2002/12/23 17:15:26 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: adutil.c,v 1.2 2003/01/27 04:08:45 lonewolf Exp $");
#include <sys/param.h>
#include <sys/vnode.h>
@@ -113,7 +113,7 @@
{
if (adoscksum(bp, amp->nwords)) {
#ifdef DIAGNOSTIC
- printf("adosfs: aget: cksum of blk %ld failed\n",
+ printf("adosfs: aget: cksum of blk %" PRId64 " failed\n",
bp->b_blkno / (amp->bsize / DEV_BSIZE));
#endif
return (-1);
@@ -124,7 +124,7 @@
*/
if (adoswordn(bp, 0) != BPT_SHORT) {
#ifdef DIAGNOSTIC
- printf("adosfs: aget: bad primary type blk %ld (type = %d)\n",
+ printf("adosfs: aget: bad primary type blk %" PRId64 " (type = %d)\n",
bp->b_blkno / (amp->bsize / DEV_BSIZE), adoswordn(bp,0));
#endif
return (-1);
@@ -149,7 +149,7 @@
}
#ifdef DIAGNOSTIC
- printf("adosfs: aget: bad secondary type blk %ld (type = %d)\n",
+ printf("adosfs: aget: bad secondary type blk %" PRId64 " (type = %d)\n",
bp->b_blkno / (amp->bsize / DEV_BSIZE), adoswordn(bp, amp->nwords - 1));
#endif
diff -r 6d68b142d19d -r 78ef778e4f26 sys/fs/adosfs/advnops.c
--- a/sys/fs/adosfs/advnops.c Mon Jan 27 03:33:36 2003 +0000
+++ b/sys/fs/adosfs/advnops.c Mon Jan 27 04:08:45 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: advnops.c,v 1.3 2003/01/24 21:55:17 fvdl Exp $ */
+/* $NetBSD: advnops.c,v 1.4 2003/01/27 04:08:45 lonewolf Exp $ */
/*
* Copyright (c) 1994 Christian E. Hopps
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: advnops.c,v 1.3 2003/01/24 21:55:17 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: advnops.c,v 1.4 2003/01/27 04:08:45 lonewolf Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@@ -322,13 +322,13 @@
error = EIO; /* OFS needs the complete block */
else if (adoswordn(bp, 0) != BPT_DATA) {
#ifdef DIAGNOSTIC
- printf("adosfs: bad primary type blk %ld\n",
+ printf("adosfs: bad primary type blk %" PRId64 "\n",
bp->b_blkno / (amp->bsize / DEV_BSIZE));
#endif
error = EINVAL;
} else if (adoscksum(bp, ap->nwords)) {
#ifdef DIAGNOSTIC
- printf("adosfs: blk %ld failed cksum.\n",
+ printf("adosfs: blk %" PRId64 " failed cksum.\n",
bp->b_blkno / (amp->bsize / DEV_BSIZE));
#endif
error = EINVAL;
@@ -571,7 +571,7 @@
*bnp = adoswordn(flbp, flblkoff) * ap->amp->bsize / DEV_BSIZE;
} else {
#ifdef DIAGNOSTIC
- printf("flblk offset %ld too large in lblk %ld blk %d\n",
+ printf("flblk offset %ld too large in lblk %ld blk %" PRId64 "\n",
flblkoff, (long)bn, flbp->b_blkno);
#endif
error = EINVAL;
Home |
Main Index |
Thread Index |
Old Index