Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Cast timeval members to types we know the printf convers...
details: https://anonhg.NetBSD.org/src/rev/6edf65c25d5f
branches: trunk
changeset: 484140:6edf65c25d5f
user: kleink <kleink%NetBSD.org@localhost>
date: Sun Mar 26 20:24:12 2000 +0000
description:
Cast timeval members to types we know the printf conversions of.
diffstat:
sys/ddb/db_xxx.c | 7 ++++---
sys/dev/pcmcia/if_ray.c | 14 +++++++++++---
2 files changed, 15 insertions(+), 6 deletions(-)
diffs (56 lines):
diff -r 5fffdce6ef0a -r 6edf65c25d5f sys/ddb/db_xxx.c
--- a/sys/ddb/db_xxx.c Sun Mar 26 19:11:04 2000 +0000
+++ b/sys/ddb/db_xxx.c Sun Mar 26 20:24:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_xxx.c,v 1.7 2000/03/23 07:01:25 thorpej Exp $ */
+/* $NetBSD: db_xxx.c,v 1.8 2000/03/26 20:24:12 kleink Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1991, 1993
@@ -171,8 +171,9 @@
p->p_emul->e_name,p->p_priority);
calcru(p, tv+0, tv+1, tv+2);
for(i = 0; i < 2; ++i) {
- db_printf("%4ld.%1ld", tv[i].tv_sec,
- tv[i].tv_usec/100000);
+ db_printf("%4ld.%1ld",
+ (long)tv[i].tv_sec,
+ (long)tv[i].tv_usec/100000);
}
if(p->p_wchan && p->p_wmesg) {
db_printf(" %-12s", p->p_wmesg);
diff -r 5fffdce6ef0a -r 6edf65c25d5f sys/dev/pcmcia/if_ray.c
--- a/sys/dev/pcmcia/if_ray.c Sun Mar 26 19:11:04 2000 +0000
+++ b/sys/dev/pcmcia/if_ray.c Sun Mar 26 20:24:12 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_ray.c,v 1.17 2000/03/23 07:01:42 thorpej Exp $ */
+/* $NetBSD: if_ray.c,v 1.18 2000/03/26 20:25:30 kleink Exp $ */
/*
* Copyright (c) 2000 Christian E. Hopps
* All rights reserved.
@@ -335,7 +335,11 @@
microtime(ttp); \
timersub(ttp, ltp, &rtv); \
tmp = ttp; ttp = ltp; ltp = tmp; \
- printf("%ld:%ld %ld:%06ld: ", ttp->tv_sec, ttp->tv_usec, rtv.tv_sec, rtv.tv_usec); \
+ printf("%ld:%ld %ld:%06ld: ", \
+ (long int)ttp->tv_sec, \
+ (long int)ttp->tv_usec, \
+ (long int)rtv.tv_sec, \
+ (long int)rtv.tv_usec); \
printf x ; \
} } while (0)
#define RAY_DPRINTF_XMIT(x) do { if (ray_debug_xmit_sum) { \
@@ -343,7 +347,11 @@
microtime(ttp); \
timersub(ttp, ltp, &rtv); \
tmp = ttp; ttp = ltp; ltp = tmp; \
- printf("%ld:%ld %ld:%06ld: ", ttp->tv_sec, ttp->tv_usec, rtv.tv_sec, rtv.tv_usec); \
+ printf("%ld:%ld %ld:%06ld: ", \
+ (long int)ttp->tv_sec, \
+ (long int)ttp->tv_usec, \
+ (long int)rtv.tv_sec, \
+ (long int)rtv.tv_usec); \
printf x ; \
} } while (0)
Home |
Main Index |
Thread Index |
Old Index