module: Fix a printf format mismatch ("%s" vs int)

This commit is contained in:
YAMAMOTO Takashi 2020-03-26 16:04:50 +09:00 committed by Abdelatif Guettouche
parent 4a4835030d
commit cc966d5414

View File

@ -46,6 +46,7 @@
#include <sys/boardctl.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
@ -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);
}