From be76d43e25015ff0ccb593b983d57bb9b4336cdb Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Fri, 13 Nov 2020 14:58:29 +0900 Subject: [PATCH] net/procfs/netdev_statistics.c: Fix a printf format warning --- net/procfs/netdev_statistics.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/procfs/netdev_statistics.c b/net/procfs/netdev_statistics.c index bbb499e4b5..95b18ac7e4 100644 --- a/net/procfs/netdev_statistics.c +++ b/net/procfs/netdev_statistics.c @@ -42,6 +42,7 @@ #include #include #include +#include #include #include @@ -542,7 +543,8 @@ static int netprocfs_errors(FAR struct netprocfs_file_s *netfile) dev = netfile->dev; stats = &dev->d_statistics; - return snprintf(netfile->line, NET_LINELEN , "\tTotal Errors: %08x\n\n", + return snprintf(netfile->line, NET_LINELEN, + "\tTotal Errors: %08" PRIx32 "\n\n", stats->errors); } #endif /* CONFIG_NETDEV_STATISTICS */