mirror of
https://github.com/apache/nuttx.git
synced 2026-05-31 23:40:19 +08:00
Fix format warn (#96)
* fix warning: format '%x' expects argument of type 'unsigned int', but argument 4 has type 'long unsigned int' * fix warning: implicit declaration of function 'up_init_exidx'
This commit is contained in:
@@ -51,6 +51,7 @@
|
|||||||
|
|
||||||
#include <nuttx/arch.h>
|
#include <nuttx/arch.h>
|
||||||
#include <nuttx/addrenv.h>
|
#include <nuttx/addrenv.h>
|
||||||
|
#include <nuttx/elf.h>
|
||||||
#include <nuttx/mm/mm.h>
|
#include <nuttx/mm/mm.h>
|
||||||
#include <nuttx/binfmt/elf.h>
|
#include <nuttx/binfmt/elf.h>
|
||||||
|
|
||||||
|
|||||||
@@ -538,7 +538,7 @@ static int netprocfs_errors(FAR struct netprocfs_file_s *netfile)
|
|||||||
stats = &dev->d_statistics;
|
stats = &dev->d_statistics;
|
||||||
|
|
||||||
return snprintf(netfile->line, NET_LINELEN , "\tTotal Errors: %08x\n\n",
|
return snprintf(netfile->line, NET_LINELEN , "\tTotal Errors: %08x\n\n",
|
||||||
(unsigned long)stats->errors);
|
stats->errors);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_NETDEV_STATISTICS */
|
#endif /* CONFIG_NETDEV_STATISTICS */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user