mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-09 06:25:16 +00:00
module/sotest: Using syslog to print log
Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
This commit is contained in:
parent
4285c4df73
commit
4eba6101b4
1 changed files with 4 additions and 3 deletions
|
|
@ -134,7 +134,8 @@ int main(int argc, FAR char *argv[])
|
|||
|
||||
for (; desc.minor <= CONFIG_EXAMPLES_SOTEST_DEVMINOR_MAX; desc.minor++)
|
||||
{
|
||||
printf("main: Registering romdisk at /dev/ram%d\n", desc.minor);
|
||||
syslog(LOG_INFO, "main: Registering romdisk at /dev/ram%d\n",
|
||||
desc.minor);
|
||||
|
||||
ret = boardctl(BOARDIOC_ROMDISK, (uintptr_t)&desc);
|
||||
if (ret >= 0)
|
||||
|
|
@ -154,8 +155,8 @@ int main(int argc, FAR char *argv[])
|
|||
/* Mount the file system */
|
||||
|
||||
sprintf(devname, SOTEST_DEVPATH_FMT, desc.minor);
|
||||
printf("main: Mounting ROMFS filesystem at target=%s with source=%s\n",
|
||||
BINDIR, devname);
|
||||
syslog(LOG_INFO, "main: Mounting ROMFS filesystem at "
|
||||
"target=%s with source=%s\n", BINDIR, devname);
|
||||
|
||||
ret = mount(devname, BINDIR, "romfs", MS_RDONLY,
|
||||
NULL);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue