Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/mcast timespec.tv_nsec is long, so use %ld instead...
details: https://anonhg.NetBSD.org/src/rev/a9cccab33bfa
branches: trunk
changeset: 332980:a9cccab33bfa
user: martin <martin%NetBSD.org@localhost>
date: Mon Oct 13 06:57:08 2014 +0000
description:
timespec.tv_nsec is long, so use %ld instead of %jd as printf format.
diffstat:
tests/net/mcast/t_mcast.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 5090322cf6d4 -r a9cccab33bfa tests/net/mcast/t_mcast.c
--- a/tests/net/mcast/t_mcast.c Mon Oct 13 04:57:11 2014 +0000
+++ b/tests/net/mcast/t_mcast.c Mon Oct 13 06:57:08 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_mcast.c,v 1.7 2014/10/13 04:57:11 christos Exp $ */
+/* $NetBSD: t_mcast.c,v 1.8 2014/10/13 06:57:08 martin Exp $ */
/*-
* Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
#ifdef __RCSID
-__RCSID("$NetBSD: t_mcast.c,v 1.7 2014/10/13 04:57:11 christos Exp $");
+__RCSID("$NetBSD: t_mcast.c,v 1.8 2014/10/13 06:57:08 martin Exp $");
#else
extern const char *__progname;
#define getprogname() __progname
@@ -159,7 +159,7 @@
static void
show(const char *prefix, const struct message *msg)
{
- printf("%10.10s: %zu [%jd.%jd]\n", prefix, msg->seq, (intmax_t)
+ printf("%10.10s: %zu [%jd.%ld]\n", prefix, msg->seq, (intmax_t)
msg->ts.tv_sec, msg->ts.tv_nsec);
}
Home |
Main Index |
Thread Index |
Old Index