Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ir Fix size_t printf formats in DIAGNOSTIC case.
details: https://anonhg.NetBSD.org/src/rev/036d7440fab2
branches: trunk
changeset: 545885:036d7440fab2
user: fvdl <fvdl%NetBSD.org@localhost>
date: Thu Apr 17 12:34:25 2003 +0000
description:
Fix size_t printf formats in DIAGNOSTIC case.
diffstat:
sys/dev/ir/irframe.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (31 lines):
diff -r 589097acea14 -r 036d7440fab2 sys/dev/ir/irframe.c
--- a/sys/dev/ir/irframe.c Thu Apr 17 12:33:49 2003 +0000
+++ b/sys/dev/ir/irframe.c Thu Apr 17 12:34:25 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: irframe.c,v 1.23 2002/10/23 09:13:21 jdolecek Exp $ */
+/* $NetBSD: irframe.c,v 1.24 2003/04/17 12:34:25 fvdl Exp $ */
/*
* Copyright (c) 2001 The NetBSD Foundation, Inc.
@@ -236,8 +236,8 @@
return (EIO);
if (uio->uio_resid < sc->sc_params.maxsize) {
#ifdef DIAGNOSTIC
- printf("irframeread: short read %d < %d\n", uio->uio_resid,
- sc->sc_params.maxsize);
+ printf("irframeread: short read %ld < %d\n",
+ (long)uio->uio_resid, sc->sc_params.maxsize);
#endif
return (EINVAL);
}
@@ -256,8 +256,8 @@
return (EIO);
if (uio->uio_resid > sc->sc_params.maxsize) {
#ifdef DIAGNOSTIC
- printf("irframeread: long write %d > %d\n", uio->uio_resid,
- sc->sc_params.maxsize);
+ printf("irframeread: long write %ld > %d\n",
+ (long)uio->uio_resid, sc->sc_params.maxsize);
#endif
return (EINVAL);
}
Home |
Main Index |
Thread Index |
Old Index