mirror of
https://github.com/apache/nuttx.git
synced 2026-09-26 18:16:27 +08:00
sched/modules: Be consistent use of binary loader debug instrumentation. Was mixed system and binary loader debug. libs/libc/modlib: Switch from systemb to binary load debug to be consistent with sched/modules.
This commit is contained in:
@@ -110,7 +110,7 @@ int modlib_read(FAR struct mod_loadinfo_s *loadinfo, FAR uint8_t *buffer,
|
||||
ssize_t nbytes; /* Number of bytes read */
|
||||
off_t rpos; /* Position returned by lseek */
|
||||
|
||||
sinfo("Read %ld bytes from offset %ld\n", (long)readsize, (long)offset);
|
||||
binfo("Read %ld bytes from offset %ld\n", (long)readsize, (long)offset);
|
||||
|
||||
/* Loop until all of the requested data has been read. */
|
||||
|
||||
@@ -122,7 +122,7 @@ int modlib_read(FAR struct mod_loadinfo_s *loadinfo, FAR uint8_t *buffer,
|
||||
if (rpos != offset)
|
||||
{
|
||||
int errval = get_errno();
|
||||
serr("ERROR: Failed to seek to position %lu: %d\n",
|
||||
berr("ERROR: Failed to seek to position %lu: %d\n",
|
||||
(unsigned long)offset, errval);
|
||||
return -errval;
|
||||
}
|
||||
@@ -138,14 +138,14 @@ int modlib_read(FAR struct mod_loadinfo_s *loadinfo, FAR uint8_t *buffer,
|
||||
|
||||
if (errval != EINTR)
|
||||
{
|
||||
serr("ERROR: Read from offset %lu failed: %d\n",
|
||||
berr("ERROR: Read from offset %lu failed: %d\n",
|
||||
(unsigned long)offset, errval);
|
||||
return -errval;
|
||||
}
|
||||
}
|
||||
else if (nbytes == 0)
|
||||
{
|
||||
serr("ERROR: Unexpected end of file\n");
|
||||
berr("ERROR: Unexpected end of file\n");
|
||||
return -ENODATA;
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user