diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2014-07-21 17:44:45 (GMT) |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2014-07-21 17:59:39 (GMT) |
commit | 956b758f7e58f683a3c6a20118cf8d4d203f8085 (patch) | |
tree | 4be75d64215834641939e41bf36091dced91081e /lib/xfrm/sa.c | |
parent | 5f9eedc22d381ac8e234e0a649c4b3c9631b6124 (diff) | |
download | libnl-956b758f7e58f683a3c6a20118cf8d4d203f8085.zip libnl-956b758f7e58f683a3c6a20118cf8d4d203f8085.tar.gz libnl-956b758f7e58f683a3c6a20118cf8d4d203f8085.tar.bz2 |
xfrm: use the right specifier for uint64_t
This fixes compile warnings like this:
xfrm/sp.c: In function 'xfrm_sp_dump_line':
xfrm/sp.c:346:3: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 3 has type 'uint64_t' [-Wformat=]
sprintf (dir, "%llu", sp->lft->soft_byte_limit);
Cc: Thomas Haller <thaller@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: Thomas Haller <thaller@redhat.com>
Diffstat (limited to 'lib/xfrm/sa.c')
-rw-r--r-- | lib/xfrm/sa.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/xfrm/sa.c b/lib/xfrm/sa.c index 38c06fc..dc887a0 100644 --- a/lib/xfrm/sa.c +++ b/lib/xfrm/sa.c @@ -409,20 +409,20 @@ static void xfrm_sa_dump_line(struct nl_object *a, struct nl_dump_params *p) if (sa->lft->soft_byte_limit == XFRM_INF) sprintf (flags, "INF"); else - sprintf (flags, "%llu", sa->lft->soft_byte_limit); + sprintf (flags, "%" PRIu64, sa->lft->soft_byte_limit); if (sa->lft->soft_packet_limit == XFRM_INF) sprintf (mode, "INF"); else - sprintf (mode, "%llu", sa->lft->soft_packet_limit); + sprintf (mode, "%" PRIu64, sa->lft->soft_packet_limit); nl_dump_line(p, "\t\tsoft limit: %s (bytes), %s (packets)\n", flags, mode); if (sa->lft->hard_byte_limit == XFRM_INF) sprintf (flags, "INF"); else - sprintf (flags, "%llu", sa->lft->hard_byte_limit); + sprintf (flags, "%" PRIu64, sa->lft->hard_byte_limit); if (sa->lft->hard_packet_limit == XFRM_INF) sprintf (mode, "INF"); else - sprintf (mode, "%llu", sa->lft->hard_packet_limit); + sprintf (mode, "%" PRIu64, sa->lft->hard_packet_limit); nl_dump_line(p, "\t\thard limit: %s (bytes), %s (packets)\n", flags, mode); nl_dump_line(p, "\t\tsoft add_time: %llu (seconds), soft use_time: %llu (seconds) \n", sa->lft->soft_add_expires_seconds, sa->lft->soft_use_expires_seconds); |