From f8bcd58be253c608f8729bb431bb1eb5a7c67dc3 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 14 Jan 2020 06:41:09 +0800 Subject: [PATCH] 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' --- binfmt/libelf/libelf_load.c | 1 + net/procfs/netdev_statistics.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/binfmt/libelf/libelf_load.c b/binfmt/libelf/libelf_load.c index a74ae3f1f6..6460c79fe8 100644 --- a/binfmt/libelf/libelf_load.c +++ b/binfmt/libelf/libelf_load.c @@ -51,6 +51,7 @@ #include #include +#include #include #include diff --git a/net/procfs/netdev_statistics.c b/net/procfs/netdev_statistics.c index cdeb7241a1..a75ee06f49 100644 --- a/net/procfs/netdev_statistics.c +++ b/net/procfs/netdev_statistics.c @@ -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 */