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 */