summaryrefslogtreecommitdiffstats
path: root/ip
diff options
context:
space:
mode:
authornet[shemminger]!shemminger <net[shemminger]!shemminger>2005-01-17 23:28:16 +0000
committernet[shemminger]!shemminger <net[shemminger]!shemminger>2005-01-17 23:28:16 +0000
commitb906243b62c832f24473de3ead7d7feef0e75e4b (patch)
treee73c175f888a41cbfd487647f3c4b1fcf2df4e71 /ip
parent11dc2300050362c390c2087f6f7269d45a2504c3 (diff)
Import patch iproute2.116
(Logical change 1.118)
Diffstat (limited to 'ip')
-rw-r--r--ip/ipxfrm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ip/ipxfrm.c b/ip/ipxfrm.c
index 4df3fb99..b29b3a03 100644
--- a/ip/ipxfrm.c
+++ b/ip/ipxfrm.c
@@ -243,7 +243,7 @@ static const char *strxf_limit(__u64 limit)
if (limit == XFRM_INF)
strcpy(str, "(INF)");
else
- sprintf(str, "%llu", limit);
+ sprintf(str, "%llu", (unsigned long long) limit);
return str;
}
@@ -323,9 +323,9 @@ void xfrm_lifetime_print(struct xfrm_lifetime_cfg *cfg,
fprintf(fp, " ");
fprintf(fp, "expire add: ");
fprintf(fp, "soft ");
- fprintf(fp, "%llu", cfg->soft_add_expires_seconds);
+ fprintf(fp, "%llu", (unsigned long long) cfg->soft_add_expires_seconds);
fprintf(fp, "(sec), hard ");
- fprintf(fp, "%llu", cfg->hard_add_expires_seconds);
+ fprintf(fp, "%llu", (unsigned long long) cfg->hard_add_expires_seconds);
fprintf(fp, "(sec)");
fprintf(fp, "%s", _SL_);
@@ -334,9 +334,9 @@ void xfrm_lifetime_print(struct xfrm_lifetime_cfg *cfg,
fprintf(fp, " ");
fprintf(fp, "expire use: ");
fprintf(fp, "soft ");
- fprintf(fp, "%llu", cfg->soft_use_expires_seconds);
+ fprintf(fp, "%llu", (unsigned long long) cfg->soft_use_expires_seconds);
fprintf(fp, "(sec), hard ");
- fprintf(fp, "%llu", cfg->hard_use_expires_seconds);
+ fprintf(fp, "%llu", (unsigned long long) cfg->hard_use_expires_seconds);
fprintf(fp, "(sec)");
fprintf(fp, "%s", _SL_);
}
@@ -349,8 +349,8 @@ void xfrm_lifetime_print(struct xfrm_lifetime_cfg *cfg,
if (prefix)
fprintf(fp, prefix);
fprintf(fp, " ");
- fprintf(fp, "%llu(bytes), ", cur->bytes);
- fprintf(fp, "%llu(packets)", cur->packets);
+ fprintf(fp, "%llu(bytes), ", (unsigned long long) cur->bytes);
+ fprintf(fp, "%llu(packets)", (unsigned long long) cur->packets);
fprintf(fp, "%s", _SL_);
if (prefix)