mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Remove lowsyslog(). The new syslog() includes all of the functionality of lowsyslog(). No longer any need for two interfaces.
This commit is contained in:
@@ -93,8 +93,7 @@ int board_usbmsc_initialize(int port)
|
||||
pbuffer = (uint8_t *)kmm_malloc(BUFFER_SIZE);
|
||||
if (!pbuffer)
|
||||
{
|
||||
lowsyslog(LOG_ERR, "ERROR: Failed to allocate ramdisk of size %d\n",
|
||||
BUFFER_SIZE);
|
||||
err("ERROR: Failed to allocate ramdisk of size %d\n", BUFFER_SIZE);
|
||||
return -ENOMEM;
|
||||
}
|
||||
|
||||
@@ -107,9 +106,8 @@ int board_usbmsc_initialize(int port)
|
||||
RDFLAG_WRENABLED | RDFLAG_FUNLINK);
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR,
|
||||
"ERROR: create_ramdisk: Failed to register ramdisk at %s: %d\n",
|
||||
g_source, -ret);
|
||||
err("ERROR: create_ramdisk: Failed to register ramdisk at %s: %d\n",
|
||||
g_source, -ret);
|
||||
kmm_free(pbuffer);
|
||||
return ret;
|
||||
}
|
||||
@@ -119,9 +117,8 @@ int board_usbmsc_initialize(int port)
|
||||
ret = mkfatfs(g_source, &g_fmt);
|
||||
if (ret < 0)
|
||||
{
|
||||
syslog(LOG_ERR,
|
||||
"ERROR: create_ramdisk: Failed to create FAT filesystem on ramdisk at %s\n",
|
||||
g_source);
|
||||
err("ERROR: create_ramdisk: Failed to create FAT filesystem on ramdisk at %s\n",
|
||||
g_source);
|
||||
/* kmm_free(pbuffer); -- RAM disk is registered */
|
||||
return ret;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user