From cc966d54144f31fde9f1698fb55f7a14005722e9 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Thu, 26 Mar 2020 16:04:50 +0900 Subject: [PATCH] module: Fix a printf format mismatch ("%s" vs int) --- examples/module/module_main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/module/module_main.c b/examples/module/module_main.c index dfffda420..896f68e77 100644 --- a/examples/module/module_main.c +++ b/examples/module/module_main.c @@ -46,6 +46,7 @@ #include #include #include +#include #include #include #include @@ -213,7 +214,7 @@ int main(int argc, FAR char *argv[]) if (ret < 0) { fprintf(stderr, "ERROR: mount(%s,%s,romfs) failed: %s\n", - CONFIG_EXAMPLES_MODULE_DEVPATH, MOUNTPT, errno); + CONFIG_EXAMPLES_MODULE_DEVPATH, MOUNTPT, strerror(errno)); exit(EXIT_FAILURE); }