sotest: Fix a printf format mismatch ("%s" vs int)
This commit is contained in:
parent
f16a765cca
commit
4a4835030d
@ -45,6 +45,7 @@
|
|||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
#include <string.h>
|
||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <dlfcn.h>
|
#include <dlfcn.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
@ -160,7 +161,7 @@ int main(int argc, FAR char *argv[])
|
|||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "ERROR: mount(%s,%s,romfs) failed: %s\n",
|
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);
|
exit(EXIT_FAILURE);
|
||||||
}
|
}
|
||||||
#endif /* CONFIG_EXAMPLES_SOTEST_BUILTINFS */
|
#endif /* CONFIG_EXAMPLES_SOTEST_BUILTINFS */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user