mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-26 03:03:34 +08:00
Add syslog.h; rename lib_rawprintf() to syslog()
git-svn-id: http://svn.code.sf.net/p/nuttx/code/trunk@5578 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -495,14 +495,14 @@ static void mio283qt2_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npi
|
||||
{
|
||||
int i, j;
|
||||
|
||||
lib_rawprintf("\n%s:\n", msg);
|
||||
syslog("\n%s:\n", msg);
|
||||
for (i = 0; i < npixels; i += 16)
|
||||
{
|
||||
up_putc(' ');
|
||||
lib_rawprintf(" ");
|
||||
syslog(" ");
|
||||
for (j = 0; j < 16; j++)
|
||||
{
|
||||
lib_rawprintf(" %04x", *run++);
|
||||
syslog(" %04x", *run++);
|
||||
}
|
||||
up_putc('\n');
|
||||
}
|
||||
|
||||
@@ -497,14 +497,14 @@ static void ssd1289_dumprun(FAR const char *msg, FAR uint16_t *run, size_t npixe
|
||||
{
|
||||
int i, j;
|
||||
|
||||
lib_rawprintf("\n%s:\n", msg);
|
||||
syslog("\n%s:\n", msg);
|
||||
for (i = 0; i < npixels; i += 16)
|
||||
{
|
||||
up_putc(' ');
|
||||
lib_rawprintf(" ");
|
||||
syslog(" ");
|
||||
for (j = 0; j < 16; j++)
|
||||
{
|
||||
lib_rawprintf(" %04x", *run++);
|
||||
syslog(" %04x", *run++);
|
||||
}
|
||||
up_putc('\n');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user