From 7a85cf1728134753ba553e5341052eb0babaa3c5 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Wed, 7 Aug 2019 07:56:10 -0600 Subject: [PATCH] fs/procfs/fs_procfsuptime: Fixed type warning. --- fs/procfs/fs_procfsuptime.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/procfs/fs_procfsuptime.c b/fs/procfs/fs_procfsuptime.c index ff2167b8de..2ea9071d6f 100644 --- a/fs/procfs/fs_procfsuptime.c +++ b/fs/procfs/fs_procfsuptime.c @@ -266,9 +266,11 @@ static ssize_t uptime_read(FAR struct file *filep, FAR char *buffer, /* Convert the seconds + hundredths of seconds to a string */ #ifdef CONFIG_SYSTEM_TIME64 - linesize = snprintf(attr->line, UPTIME_LINELEN, "%7llu.%02u\n", sec, csec); + linesize = snprintf(attr->line, UPTIME_LINELEN, "%7llu.%02u\n", + sec, csec); #else - linesize = snprintf(attr->line, UPTIME_LINELEN, "%7lu.%02u\n", sec, csec); + linesize = snprintf(attr->line, UPTIME_LINELEN, "%7lu.%02u\n", + (unsigned long)sec, csec); #endif #endif