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:
Xiang Xiao 2020-01-14 06:41:09 +08:00 committed by patacongo
parent 84153ad1a5
commit f8bcd58be2
2 changed files with 2 additions and 1 deletions

View File

@ -51,6 +51,7 @@
#include <nuttx/arch.h>
#include <nuttx/addrenv.h>
#include <nuttx/elf.h>
#include <nuttx/mm/mm.h>
#include <nuttx/binfmt/elf.h>

View File

@ -538,7 +538,7 @@ static int netprocfs_errors(FAR struct netprocfs_file_s *netfile)
stats = &dev->d_statistics;
return snprintf(netfile->line, NET_LINELEN , "\tTotal Errors: %08x\n\n",
(unsigned long)stats->errors);
stats->errors);
}
#endif /* CONFIG_NETDEV_STATISTICS */