Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/net/can Fix size_t format strings
details: https://anonhg.NetBSD.org/src/rev/8f81e1d6d6b8
branches: trunk
changeset: 353914:8f81e1d6d6b8
user: martin <martin%NetBSD.org@localhost>
date: Sun May 28 09:35:01 2017 +0000
description:
Fix size_t format strings
diffstat:
tests/net/can/t_can.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (36 lines):
diff -r 09d862b082ea -r 8f81e1d6d6b8 tests/net/can/t_can.c
--- a/tests/net/can/t_can.c Sun May 28 05:27:13 2017 +0000
+++ b/tests/net/can/t_can.c Sun May 28 09:35:01 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_can.c,v 1.2 2017/05/27 21:02:56 bouyer Exp $ */
+/* $NetBSD: t_can.c,v 1.3 2017/05/28 09:35:01 martin Exp $ */
/*-
* Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -32,7 +32,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: t_can.c,v 1.2 2017/05/27 21:02:56 bouyer Exp $");
+__RCSID("$NetBSD: t_can.c,v 1.3 2017/05/28 09:35:01 martin Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -686,7 +686,7 @@
ATF_CHECK_MSG(sa.can_family == AF_CAN,
"recvfrom provided wrong %d family", sa.can_family);
ATF_CHECK_MSG(salen == sizeof(sa),
- "recvfrom provided wrong size %d (!= %ld)",
+ "recvfrom provided wrong size %u (!= %zu)",
salen, sizeof(sa));
ATF_CHECK_MSG(sa.can_ifindex == ifindex,
"recvfrom provided wrong ifindex %d (!= %d)",
@@ -708,7 +708,7 @@
ATF_CHECK_MSG(sa.can_family == AF_CAN,
"recvfrom provided wrong %d family", sa.can_family);
ATF_CHECK_MSG(salen == sizeof(sa),
- "recvfrom provided wrong size %d (!= %ld)",
+ "recvfrom provided wrong size %u (!= %zu)",
salen, sizeof(sa));
ATF_CHECK_MSG(sa.can_ifindex == ifindex,
"recvfrom provided wrong ifindex %d (!= %d)",
Home |
Main Index |
Thread Index |
Old Index