platform: fix format specifyer in _lifetime_to_string() for unsigned

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-06-06 20:05:08 +02:00
parent fcc34ef77b
commit a04df905fd

View file

@ -2078,7 +2078,7 @@ _lifetime_to_string (guint32 timestamp, guint32 lifetime, gint32 now, char *buf,
if (lifetime == NM_PLATFORM_LIFETIME_PERMANENT)
return "forever";
g_snprintf (buf, buf_size, "%dsec",
g_snprintf (buf, buf_size, "%usec",
_rebase_relative_time_on_now (timestamp, lifetime, now));
return buf;
}