mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
Without lowsyslog() *llerr() is not useful. Eliminate and replace with *err().
This commit is contained in:
@@ -76,14 +76,6 @@
|
||||
(((n)+CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_SECTSIZE-1) / \
|
||||
CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_SECTSIZE)
|
||||
|
||||
/* Debug ********************************************************************/
|
||||
|
||||
#ifdef CONFIG_BOARD_INITIALIZE
|
||||
# define SYSLOG _llerr
|
||||
#else
|
||||
# define SYSLOG _err
|
||||
#endif
|
||||
|
||||
/****************************************************************************
|
||||
* Private Functions
|
||||
****************************************************************************/
|
||||
@@ -177,7 +169,7 @@ int sam_bringup(void)
|
||||
ret = sam_emac0_setmac();
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: sam_emac0_setmac() failed: %d\n", ret);
|
||||
_err("ERROR: sam_emac0_setmac() failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -187,8 +179,8 @@ int sam_bringup(void)
|
||||
ret = mount(NULL, SAME70_PROCFS_MOUNTPOINT, "procfs", 0, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: Failed to mount procfs at %s: %d\n",
|
||||
SAME70_PROCFS_MOUNTPOINT, ret);
|
||||
_err("ERROR: Failed to mount procfs at %s: %d\n",
|
||||
SAME70_PROCFS_MOUNTPOINT, ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -200,7 +192,7 @@ int sam_bringup(void)
|
||||
ret = sam_at24config();
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: sam_at24config() failed: %d\n", ret);
|
||||
_err("ERROR: sam_at24config() failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -210,8 +202,8 @@ int sam_bringup(void)
|
||||
ret = sam_hsmci_initialize(HSMCI0_SLOTNO, HSMCI0_MINOR);
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n",
|
||||
HSMCI0_SLOTNO, HSMCI0_MINOR, ret);
|
||||
_err("ERROR: sam_hsmci_initialize(%d,%d) failed: %d\n",
|
||||
HSMCI0_SLOTNO, HSMCI0_MINOR, ret);
|
||||
}
|
||||
|
||||
#ifdef CONFIG_SAME70XPLAINED_HSMCI0_MOUNT
|
||||
@@ -227,8 +219,8 @@ int sam_bringup(void)
|
||||
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: Failed to mount %s: %d\n",
|
||||
CONFIG_SAME70XPLAINED_HSMCI0_MOUNT_MOUNTPOINT, errno);
|
||||
_err("ERROR: Failed to mount %s: %d\n",
|
||||
CONFIG_SAME70XPLAINED_HSMCI0_MOUNT_MOUNTPOINT, errno);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -249,7 +241,7 @@ int sam_bringup(void)
|
||||
CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_SECTSIZE);
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: romdisk_register failed: %d\n", -ret);
|
||||
_err("ERROR: romdisk_register failed: %d\n", -ret);
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -260,9 +252,9 @@ int sam_bringup(void)
|
||||
"romfs", MS_RDONLY, NULL);
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: mount(%s,%s,romfs) failed: %d\n",
|
||||
CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_DEVNAME,
|
||||
CONFIG_SAME70XPLAINED_ROMFS_MOUNT_MOUNTPOINT, errno);
|
||||
_err("ERROR: mount(%s,%s,romfs) failed: %d\n",
|
||||
CONFIG_SAME70XPLAINED_ROMFS_ROMDISK_DEVNAME,
|
||||
CONFIG_SAME70XPLAINED_ROMFS_MOUNT_MOUNTPOINT, errno);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@@ -277,7 +269,7 @@ int sam_bringup(void)
|
||||
mtd = progmem_initialize();
|
||||
if (!mtd)
|
||||
{
|
||||
SYSLOG("ERROR: progmem_initialize failed\n");
|
||||
_err("ERROR: progmem_initialize failed\n");
|
||||
}
|
||||
|
||||
/* Use the FTL layer to wrap the MTD driver as a block driver */
|
||||
@@ -285,7 +277,7 @@ int sam_bringup(void)
|
||||
ret = ftl_initialize(PROGMEM_MTD_MINOR, mtd);
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: Failed to initialize the FTL layer: %d\n", ret);
|
||||
_err("ERROR: Failed to initialize the FTL layer: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
@@ -299,7 +291,7 @@ int sam_bringup(void)
|
||||
ret = bchdev_register(blockdev, chardev, false);
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: bchdev_register %s failed: %d\n", chardev, ret);
|
||||
_err("ERROR: bchdev_register %s failed: %d\n", chardev, ret);
|
||||
return ret;
|
||||
}
|
||||
#endif
|
||||
@@ -312,7 +304,7 @@ int sam_bringup(void)
|
||||
ret = sam_usbhost_initialize();
|
||||
if (ret != OK)
|
||||
{
|
||||
SYSLOG("ERROR: Failed to initialize USB host: %d\n", ret);
|
||||
_err("ERROR: Failed to initialize USB host: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -322,18 +314,18 @@ int sam_bringup(void)
|
||||
ret = usbmonitor_start(0, NULL);
|
||||
if (ret != OK)
|
||||
{
|
||||
SYSLOG("ERROR: Failed to start the USB monitor: %d\n", ret);
|
||||
_err("ERROR: Failed to start the USB monitor: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_ELF
|
||||
/* Initialize the ELF binary loader */
|
||||
|
||||
SYSLOG("Initializing the ELF binary loader\n");
|
||||
_err("Initializing the ELF binary loader\n");
|
||||
ret = elf_initialize();
|
||||
if (ret < 0)
|
||||
{
|
||||
SYSLOG("ERROR: Initialization of the ELF loader failed: %d\n", ret);
|
||||
_err("ERROR: Initialization of the ELF loader failed: %d\n", ret);
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user