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

This commit is contained in:
YAMAMOTO Takashi 2020-03-26 11:48:39 +09:00 committed by Abdelatif Guettouche
parent f16a765cca
commit 4a4835030d

View File

@ -45,6 +45,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <syslog.h>
#include <dlfcn.h>
#include <errno.h>
@ -160,7 +161,7 @@ int main(int argc, FAR char *argv[])
if (ret < 0)
{
fprintf(stderr, "ERROR: mount(%s,%s,romfs) failed: %s\n",
CONFIG_EXAMPLES_SOTEST_DEVPATH, BINDIR, errno);
CONFIG_EXAMPLES_SOTEST_DEVPATH, BINDIR, strerror(errno));
exit(EXIT_FAILURE);
}
#endif /* CONFIG_EXAMPLES_SOTEST_BUILTINFS */