mirror of
https://github.com/apache/nuttx.git
synced 2026-08-08 22:17:18 +00:00
net/procfs/netdev_statistics.c: Fix a printf format warning
This commit is contained in:
parent
457f5f5155
commit
be76d43e25
1 changed files with 3 additions and 1 deletions
|
|
@ -42,6 +42,7 @@
|
|||
#include <sys/types.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <inttypes.h>
|
||||
#include <debug.h>
|
||||
|
||||
#include <netinet/ether.h>
|
||||
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue