nuttx: remove space befone newline in logs

Signed-off-by: Petro Karashchenko <petro.karashchenko@gmail.com>
This commit is contained in:
Petro Karashchenko
2021-12-27 00:18:22 +02:00
committed by Xiang Xiao
parent e68ffb9f99
commit 3ccb657dc2
96 changed files with 274 additions and 272 deletions
+1 -1
View File
@@ -1437,7 +1437,7 @@ static int am335x_i2c_transfer(FAR struct i2c_master_s *dev,
priv->msgc = count; priv->msgc = count;
priv->flags = msgs->flags; priv->flags = msgs->flags;
i2cinfo("Flags %x, len %d \n", msgs->flags, msgs->length); i2cinfo("Flags %x, len %d\n", msgs->flags, msgs->length);
/* Reset I2C trace logic */ /* Reset I2C trace logic */
+1 -1
View File
@@ -270,7 +270,7 @@ int arm_pause_handler(int irq, void *c, FAR void *arg)
int cpu = up_cpu_index(); int cpu = up_cpu_index();
int ret = OK; int ret = OK;
DPRINTF("cpu%d will be paused \n", cpu); DPRINTF("cpu%d will be paused\n", cpu);
/* Clear SW_INT for APP_DSP(cpu) */ /* Clear SW_INT for APP_DSP(cpu) */
+4 -4
View File
@@ -55,7 +55,7 @@ FAR void *up_textheap_memalign(size_t align, size_t size)
#ifdef CONFIG_CXD56_USE_SYSBUS #ifdef CONFIG_CXD56_USE_SYSBUS
if (ret) if (ret)
{ {
binfo("** ret=%p \n", ret); binfo("** ret=%p\n", ret);
/* NOTE: /* NOTE:
* kmm_malloc() will return the address in SYSBUS. * kmm_malloc() will return the address in SYSBUS.
@@ -64,7 +64,7 @@ FAR void *up_textheap_memalign(size_t align, size_t size)
ret -= SYSBUS_ADDRESS_OFFSET; ret -= SYSBUS_ADDRESS_OFFSET;
binfo("** mapped to %p \n", ret); binfo("** mapped to %p\n", ret);
} }
#endif #endif
@@ -80,7 +80,7 @@ void up_textheap_free(FAR void *p)
#ifdef CONFIG_CXD56_USE_SYSBUS #ifdef CONFIG_CXD56_USE_SYSBUS
if (p) if (p)
{ {
binfo("** p=%p \n", p); binfo("** p=%p\n", p);
/* NOTE: /* NOTE:
* The address p will be in I/D BUS. * The address p will be in I/D BUS.
@@ -89,7 +89,7 @@ void up_textheap_free(FAR void *p)
p += SYSBUS_ADDRESS_OFFSET; p += SYSBUS_ADDRESS_OFFSET;
binfo("** mapped to %p \n", p); binfo("** mapped to %p\n", p);
} }
#endif #endif
+1 -1
View File
@@ -1215,7 +1215,7 @@ static uint32_t spi_send(struct spi_dev_s *dev, uint32_t wd)
spi_wait_status(config, _USART_STATUS_RXDATAV_MASK, USART_STATUS_RXDATAV); spi_wait_status(config, _USART_STATUS_RXDATAV_MASK, USART_STATUS_RXDATAV);
ret = spi_getreg(config, EFM32_USART_RXDATA_OFFSET); ret = spi_getreg(config, EFM32_USART_RXDATA_OFFSET);
spiinfo("Sent: %04x Return: %04x \n", wd, ret); spiinfo("Sent: %04x Return: %04x\n", wd, ret);
return ret; return ret;
} }
+2 -2
View File
@@ -104,7 +104,7 @@ void efm32_timer_dumpregs(uintptr_t base, FAR const char *msg)
getreg32(base + EFM32_TIMER_STATUS_OFFSET), getreg32(base + EFM32_TIMER_STATUS_OFFSET),
getreg32(base + EFM32_TIMER_IEN_OFFSET), getreg32(base + EFM32_TIMER_IEN_OFFSET),
getreg32(base + EFM32_TIMER_IF_OFFSET)); getreg32(base + EFM32_TIMER_IF_OFFSET));
tmrinfo("DTFAULT: %04x DTFAULTC: %04x DTLOCK: %04x \n", tmrinfo("DTFAULT: %04x DTFAULTC: %04x DTLOCK: %04x\n",
getreg32(base + EFM32_TIMER_CTRL_OFFSET), getreg32(base + EFM32_TIMER_CTRL_OFFSET),
getreg32(base + EFM32_TIMER_STATUS_OFFSET), getreg32(base + EFM32_TIMER_STATUS_OFFSET),
getreg32(base + EFM32_TIMER_IEN_OFFSET)); getreg32(base + EFM32_TIMER_IEN_OFFSET));
@@ -214,7 +214,7 @@ int efm32_timer_set_freq(uintptr_t base, uint32_t clk_freq, uint32_t freq)
reload = (clk_freq / prescaler / freq); reload = (clk_freq / prescaler / freq);
tmrinfo("Source: %4" PRIx32 "Hz Div: %4x Reload: %4x \n", tmrinfo("Source: %4" PRIx32 "Hz Div: %4x Reload: %4x\n",
clk_freq, prescaler, reload); clk_freq, prescaler, reload);
putreg32(reload, base + EFM32_TIMER_TOP_OFFSET); putreg32(reload, base + EFM32_TIMER_TOP_OFFSET);
+1 -1
View File
@@ -1686,7 +1686,7 @@ static int imxrt_lpi2c_transfer(FAR struct i2c_master_s *dev,
priv->msgc = count; priv->msgc = count;
priv->flags = msgs->flags; priv->flags = msgs->flags;
i2cinfo("Flags %x, len %d \n", msgs->flags, msgs->length); i2cinfo("Flags %x, len %d\n", msgs->flags, msgs->length);
/* Reset I2C trace logic */ /* Reset I2C trace logic */
+1 -1
View File
@@ -4412,7 +4412,7 @@ static void khci_hwinitialize(struct khci_usbdev_s *priv)
khci_putreg((uint8_t)(((uint32_t)g_bdt >> 8) & USB_BDTPAGE1_MASK), khci_putreg((uint8_t)(((uint32_t)g_bdt >> 8) & USB_BDTPAGE1_MASK),
KINETIS_USB0_BDTPAGE1); KINETIS_USB0_BDTPAGE1);
uinfo("BDT Address %p \n", (const void *)&g_bdt); uinfo("BDT Address %p\n", (const void *)&g_bdt);
uinfo("BDTPAGE3 %hhx\n", khci_getreg(KINETIS_USB0_BDTPAGE3)); uinfo("BDTPAGE3 %hhx\n", khci_getreg(KINETIS_USB0_BDTPAGE3));
uinfo("BDTPAGE2 %hhx\n", khci_getreg(KINETIS_USB0_BDTPAGE2)); uinfo("BDTPAGE2 %hhx\n", khci_getreg(KINETIS_USB0_BDTPAGE2));
uinfo("BDTPAGE1 %hhx\n", khci_getreg(KINETIS_USB0_BDTPAGE1)); uinfo("BDTPAGE1 %hhx\n", khci_getreg(KINETIS_USB0_BDTPAGE1));
+12 -12
View File
@@ -433,14 +433,14 @@ static int lc823450_i2s_ioctl(struct i2s_dev_s *dev, int cmd,
if (rate[0] != rate[1]) if (rate[0] != rate[1])
{ {
audinfo("change output rate: %" PRId32 " -> %" PRId32 " \n", audinfo("change output rate: %" PRId32 " -> %" PRId32 "\n",
rate[0], rate[1]); rate[0], rate[1]);
lc823450_i2s_txsamplerate(dev, rate[1]); lc823450_i2s_txsamplerate(dev, rate[1]);
} }
if (ch[0] != ch[1]) if (ch[0] != ch[1])
{ {
audinfo("change output ch: %d -> %d \n", ch[0], ch[1]); audinfo("change output ch: %d -> %d\n", ch[0], ch[1]);
lc823450_i2s_setchannel('C', ch[1]); lc823450_i2s_setchannel('C', ch[1]);
} }
@@ -457,14 +457,14 @@ static int lc823450_i2s_ioctl(struct i2s_dev_s *dev, int cmd,
if (rate[0] != rate[1]) if (rate[0] != rate[1])
{ {
audinfo("change input rate: %" PRId32 " -> %" PRId32 " \n", audinfo("change input rate: %" PRId32 " -> %" PRId32 "\n",
rate[0], rate[1]); rate[0], rate[1]);
lc823450_i2s_rxsamplerate(dev, rate[1]); lc823450_i2s_rxsamplerate(dev, rate[1]);
} }
if (ch[0] != ch[1]) if (ch[0] != ch[1])
{ {
audinfo("change input ch: %d -> %d \n", ch[0], ch[1]); audinfo("change input ch: %d -> %d\n", ch[0], ch[1]);
lc823450_i2s_setchannel('J', ch[1]); lc823450_i2s_setchannel('J', ch[1]);
} }
} }
@@ -699,7 +699,7 @@ static int lc823450_i2s_send(struct i2s_dev_s *dev, struct ap_buffer_s *apb,
if (0 == decsel && (n & 0x3)) if (0 == decsel && (n & 0x3))
{ {
auderr("** PCM data is not word-aligned (n=%" PRId32 ") ** \n", n); auderr("** PCM data is not word-aligned (n=%" PRId32 ") **\n", n);
/* Set size to align on a word boundary */ /* Set size to align on a word boundary */
@@ -747,7 +747,7 @@ static int lc823450_i2s_send(struct i2s_dev_s *dev, struct ap_buffer_s *apb,
#ifdef SHOW_BUFFERING #ifdef SHOW_BUFFERING
if (0 == bufc_enabled) if (0 == bufc_enabled)
{ {
audinfo("buffering (remain=%d) \n", getreg32(BUF_DTCAP('C'))); audinfo("buffering (remain=%d)\n", getreg32(BUF_DTCAP('C')));
} }
#endif #endif
@@ -826,9 +826,9 @@ static void lc823450_dmic_enable(void)
33 << 8 | 33, 33 << 8 | 33,
VOLSP0_CONT); VOLSP0_CONT);
audinfo("ASRC_FSIO=%" PRId32 " \n", getreg32(ASRC_FSO)); audinfo("ASRC_FSIO=%" PRId32 "\n", getreg32(ASRC_FSO));
audinfo("DTCAP(I)=0x%" PRIx32 " \n", getreg32(BUF_DTCAP('I'))); audinfo("DTCAP(I)=0x%" PRIx32 "\n", getreg32(BUF_DTCAP('I')));
audinfo("DTCAP(J)=0x%" PRIx32 " \n", getreg32(BUF_DTCAP('J'))); audinfo("DTCAP(J)=0x%" PRIx32 "\n", getreg32(BUF_DTCAP('J')));
/* Start ASRC */ /* Start ASRC */
@@ -990,9 +990,9 @@ static int lc823450_i2s_configure(void)
putreg32(0x1, SSRC_MODE); putreg32(0x1, SSRC_MODE);
while (getreg32(SSRC_STATUS) != 0x1); while (getreg32(SSRC_STATUS) != 0x1);
audinfo("DTCAP(C)=0x%08x \n", BUF_DTCAP('C')); audinfo("DTCAP(C)=0x%08x\n", BUF_DTCAP('C'));
audinfo("DTCAP(I)=0x%08x \n", BUF_DTCAP('I')); audinfo("DTCAP(I)=0x%08x\n", BUF_DTCAP('I'));
audinfo("DTCAP(J)=0x%08x \n", BUF_DTCAP('J')); audinfo("DTCAP(J)=0x%08x\n", BUF_DTCAP('J'));
/* Setup default tx threshold */ /* Setup default tx threshold */
+4 -4
View File
@@ -452,7 +452,7 @@ static int mtd_mediainitialize(FAR struct lc823450_mtd_dev_s *dev)
/* Try to change to High Speed DDR mode */ /* Try to change to High Speed DDR mode */
ret = lc823450_sdc_changespeedmode(dev->channel, 4); ret = lc823450_sdc_changespeedmode(dev->channel, 4);
finfo("ch=%" PRId32 " DDR mode ret=%d \n", dev->channel, ret); finfo("ch=%" PRId32 " DDR mode ret=%d\n", dev->channel, ret);
} }
else else
{ {
@@ -463,7 +463,7 @@ static int mtd_mediainitialize(FAR struct lc823450_mtd_dev_s *dev)
if (0 == ret) if (0 == ret)
{ {
lldbg("ch=%d DDR50 mode ret=%d \n", dev->channel, ret); lldbg("ch=%d DDR50 mode ret=%d\n", dev->channel, ret);
goto get_card_size; goto get_card_size;
} }
#endif #endif
@@ -475,7 +475,7 @@ static int mtd_mediainitialize(FAR struct lc823450_mtd_dev_s *dev)
if (0 == ret) if (0 == ret)
{ {
ret = lc823450_sdc_setclock(dev->channel, 40000000, sysclk); ret = lc823450_sdc_setclock(dev->channel, 40000000, sysclk);
finfo("ch=%" PRId32 " HS mode ret=%d \n", dev->channel, ret); finfo("ch=%" PRId32 " HS mode ret=%d\n", dev->channel, ret);
} }
} }
@@ -504,7 +504,7 @@ get_card_size:
lc823450_sdc_cachectl(dev->channel, 1); lc823450_sdc_cachectl(dev->channel, 1);
} }
finfo("ch=%" PRId32 " size=%" PRId64 " \n", finfo("ch=%" PRId32 " size=%" PRId64 "\n",
dev->channel, (uint64_t)blocksize * (uint64_t)nblocks); dev->channel, (uint64_t)blocksize * (uint64_t)nblocks);
exit_with_error: exit_with_error:
+5 -5
View File
@@ -206,7 +206,7 @@ static ssize_t dvfs_read(FAR struct file *filep, FAR char *buffer,
linesize = snprintf(priv->line, linesize = snprintf(priv->line,
DVFS_LINELEN, DVFS_LINELEN,
"cur_freq %d \n", g_dvfs_cur_freq); "cur_freq %d\n", g_dvfs_cur_freq);
copysize = procfs_memcpy(priv->line, linesize, buffer, remaining, &offset); copysize = procfs_memcpy(priv->line, linesize, buffer, remaining, &offset);
totalsize += copysize; totalsize += copysize;
buffer += copysize; buffer += copysize;
@@ -219,7 +219,7 @@ static ssize_t dvfs_read(FAR struct file *filep, FAR char *buffer,
linesize = snprintf(priv->line, linesize = snprintf(priv->line,
DVFS_LINELEN, DVFS_LINELEN,
"enable %d \n", g_dvfs_enabled); "enable %d\n", g_dvfs_enabled);
copysize = procfs_memcpy(priv->line, linesize, buffer, remaining, &offset); copysize = procfs_memcpy(priv->line, linesize, buffer, remaining, &offset);
totalsize += copysize; totalsize += copysize;
buffer += copysize; buffer += copysize;
@@ -227,7 +227,7 @@ static ssize_t dvfs_read(FAR struct file *filep, FAR char *buffer,
linesize = snprintf(priv->line, linesize = snprintf(priv->line,
DVFS_LINELEN, DVFS_LINELEN,
"auto %d \n", g_dvfs_auto); "auto %d\n", g_dvfs_auto);
copysize = procfs_memcpy(priv->line, linesize, buffer, remaining, &offset); copysize = procfs_memcpy(priv->line, linesize, buffer, remaining, &offset);
totalsize += copysize; totalsize += copysize;
buffer += copysize; buffer += copysize;
@@ -235,7 +235,7 @@ static ssize_t dvfs_read(FAR struct file *filep, FAR char *buffer,
linesize = snprintf(priv->line, linesize = snprintf(priv->line,
DVFS_LINELEN, DVFS_LINELEN,
"fstat %" PRId32 " %" PRId32 " %" PRId32 " \n", "fstat %" PRId32 " %" PRId32 " %" PRId32 "\n",
g_dvfs_freq_stat[0], g_dvfs_freq_stat[0],
g_dvfs_freq_stat[1], g_dvfs_freq_stat[1],
g_dvfs_freq_stat[2]); g_dvfs_freq_stat[2]);
@@ -250,7 +250,7 @@ static ssize_t dvfs_read(FAR struct file *filep, FAR char *buffer,
{ {
linesize = snprintf(priv->line, linesize = snprintf(priv->line,
DVFS_LINELEN, DVFS_LINELEN,
"idle%d %lld \n", "idle%d %lld\n",
i, idletime[i]); i, idletime[i]);
copysize = procfs_memcpy(priv->line, linesize, buffer, copysize = procfs_memcpy(priv->line, linesize, buffer,
+29 -29
View File
@@ -201,7 +201,7 @@ int lc823450_sdc_clearcardinfo(uint32_t ch)
{ {
int ret; int ret;
mcinfo("++++ start \n"); mcinfo("++++ start\n");
ret = _sdc_semtake(&_sdc_sem[ch]); ret = _sdc_semtake(&_sdc_sem[ch]);
if (ret < 0) if (ret < 0)
@@ -220,7 +220,7 @@ int lc823450_sdc_clearcardinfo(uint32_t ch)
#endif #endif
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
return ret; return ret;
} }
@@ -276,14 +276,14 @@ int lc823450_sdc_initialize(uint32_t ch)
DEBUGASSERT(false); DEBUGASSERT(false);
} }
mcinfo("++++ start \n"); mcinfo("++++ start\n");
ret = _sdc_semtake(&_sdc_sem[ch]); ret = _sdc_semtake(&_sdc_sem[ch]);
if (ret >= 0) if (ret >= 0)
{ {
ret = sddr_initialize(_cfg[ch]); ret = sddr_initialize(_cfg[ch]);
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
} }
return ret; return ret;
@@ -297,14 +297,14 @@ int lc823450_sdc_finalize(uint32_t ch)
{ {
int ret; int ret;
mcinfo("++++ start ch=%ld \n", ch); mcinfo("++++ start ch=%ld\n", ch);
ret = _sdc_semtake(&_sdc_sem[ch]); ret = _sdc_semtake(&_sdc_sem[ch]);
if (ret >= 0) if (ret >= 0)
{ {
ret = sddr_finalize(_cfg[ch]); ret = sddr_finalize(_cfg[ch]);
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
} }
return ret; return ret;
@@ -318,7 +318,7 @@ int lc823450_sdc_identifycard(uint32_t ch)
{ {
int ret; int ret;
mcinfo("++++ start \n"); mcinfo("++++ start\n");
ret = _sdc_semtake(&_sdc_sem[ch]); ret = _sdc_semtake(&_sdc_sem[ch]);
if (ret < 0) if (ret < 0)
@@ -337,7 +337,7 @@ int lc823450_sdc_identifycard(uint32_t ch)
#endif #endif
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
return ret; return ret;
} }
@@ -357,7 +357,7 @@ int lc823450_sdc_setclock(uint32_t ch, uint32_t limitclk, uint32_t sysclk)
{ {
ret = sddr_setclock(limitclk, sysclk, _cfg[ch]); ret = sddr_setclock(limitclk, sysclk, _cfg[ch]);
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
} }
return ret; return ret;
@@ -375,14 +375,14 @@ int lc823450_sdc_refmediatype(uint32_t ch)
{ {
int ret; int ret;
mcinfo("++++ start \n"); mcinfo("++++ start\n");
ret = _sdc_semtake(&_sdc_sem[ch]); ret = _sdc_semtake(&_sdc_sem[ch]);
if (ret >= 0) if (ret >= 0)
{ {
ret = sddr_refmediatype(_cfg[ch]); ret = sddr_refmediatype(_cfg[ch]);
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
} }
return ret; return ret;
@@ -397,7 +397,7 @@ int lc823450_sdc_getcardsize(uint32_t ch,
{ {
int ret; int ret;
mcinfo("++++ start \n"); mcinfo("++++ start\n");
ret = _sdc_semtake(&_sdc_sem[ch]); ret = _sdc_semtake(&_sdc_sem[ch]);
if (ret >= 0) if (ret >= 0)
@@ -405,7 +405,7 @@ int lc823450_sdc_getcardsize(uint32_t ch,
ret = sddr_getcardsize(psecnum, psecsize, _cfg[ch]); ret = sddr_getcardsize(psecnum, psecsize, _cfg[ch]);
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
} }
return ret; return ret;
@@ -429,7 +429,7 @@ int lc823450_sdc_readsector(uint32_t ch,
} }
#ifdef CONFIG_LC823450_SDC_LOG #ifdef CONFIG_LC823450_SDC_LOG
mcinfo("++++ start ch=%d, addr=%ld, cnt=%d \n", ch, addr, cnt); mcinfo("++++ start ch=%d, addr=%ld, cnt=%d\n", ch, addr, cnt);
#endif #endif
#ifdef CONFIG_LC823450_SDC_CACHE #ifdef CONFIG_LC823450_SDC_CACHE
@@ -458,7 +458,7 @@ int lc823450_sdc_readsector(uint32_t ch,
break; break;
} }
mcinfo("ret=%d ch=%" PRId32 " add=%ld cnt=%d i=%d \n", mcinfo("ret=%d ch=%" PRId32 " add=%ld cnt=%d i=%d\n",
ret, ch, addr, cnt, i); ret, ch, addr, cnt, i);
} }
@@ -470,7 +470,7 @@ int lc823450_sdc_readsector(uint32_t ch,
uint8_t *p = (pbuf + 0x1c2); /* partition id */ uint8_t *p = (pbuf + 0x1c2); /* partition id */
if (0x7 == *p) if (0x7 == *p)
{ {
mcinfo("exFAT (NTFS) detected \n"); mcinfo("exFAT (NTFS) detected\n");
_sec_cache_enabled = 1; _sec_cache_enabled = 1;
} }
} }
@@ -493,7 +493,7 @@ errout_with_semaphore:
#endif #endif
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
return ret; return ret;
} }
@@ -514,7 +514,7 @@ int lc823450_sdc_writesector(uint32_t ch,
} }
#ifdef CONFIG_LC823450_SDC_LOG #ifdef CONFIG_LC823450_SDC_LOG
mcinfo("++++ start ch=%d, addr=%ld, cnt=%d \n", ch, addr, cnt); mcinfo("++++ start ch=%d, addr=%ld, cnt=%d\n", ch, addr, cnt);
#endif #endif
#ifdef CONFIG_LC823450_SDC_CACHE #ifdef CONFIG_LC823450_SDC_CACHE
@@ -534,12 +534,12 @@ int lc823450_sdc_writesector(uint32_t ch,
if (0 > ret) if (0 > ret)
{ {
mcinfo("ret=%d ch=%" PRId32 " add=%ld cnt=%d \n", ret, ch, addr, cnt); mcinfo("ret=%d ch=%" PRId32 " add=%ld cnt=%d\n", ret, ch, addr, cnt);
} }
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
return ret; return ret;
} }
@@ -568,7 +568,7 @@ int lc823450_sdc_trimsector(uint32_t ch, unsigned long addr,
} }
#ifdef CONFIG_LC823450_SDC_LOG #ifdef CONFIG_LC823450_SDC_LOG
mcinfo("++++ start ch=%d, addr=%ld, cnt=%d \n", ch, addr, cnt); mcinfo("++++ start ch=%d, addr=%ld, cnt=%d\n", ch, addr, cnt);
#endif #endif
lc823450_sdc_access_led(ch, addr); lc823450_sdc_access_led(ch, addr);
@@ -580,12 +580,12 @@ int lc823450_sdc_trimsector(uint32_t ch, unsigned long addr,
ret = sddr_eraseseq(0x00000001, addr, cnt, _cfg[ch]); ret = sddr_eraseseq(0x00000001, addr, cnt, _cfg[ch]);
if (0 > ret) if (0 > ret)
{ {
mcinfo("ret=%d ch=%" PRId32 " add=%ld cnt=%d \n", ret, ch, addr, cnt); mcinfo("ret=%d ch=%" PRId32 " add=%ld cnt=%d\n", ret, ch, addr, cnt);
} }
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
return ret; return ret;
} }
@@ -597,7 +597,7 @@ int lc823450_sdc_cachectl(uint32_t ch, int ctrl)
{ {
int ret; int ret;
mcinfo("++++ ch=%" PRId32 ", ctrl=%d \n", ch, ctrl); mcinfo("++++ ch=%" PRId32 ", ctrl=%d\n", ch, ctrl);
ret = _sdc_semtake(&_sdc_sem[ch]); ret = _sdc_semtake(&_sdc_sem[ch]);
if (ret >= 0) if (ret >= 0)
@@ -605,7 +605,7 @@ int lc823450_sdc_cachectl(uint32_t ch, int ctrl)
ret = sddr_cachectrl(ctrl, _cfg[ch]); ret = sddr_cachectrl(ctrl, _cfg[ch]);
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
} }
return ret; return ret;
@@ -619,7 +619,7 @@ int lc823450_sdc_changespeedmode(uint32_t ch, int mode)
{ {
int ret; int ret;
mcinfo("++++ ch=%" PRId32 ", mode=%d \n", ch, mode); mcinfo("++++ ch=%" PRId32 ", mode=%d\n", ch, mode);
ret = _sdc_semtake(&_sdc_sem[ch]); ret = _sdc_semtake(&_sdc_sem[ch]);
if (ret < 0) if (ret < 0)
@@ -648,7 +648,7 @@ int lc823450_sdc_changespeedmode(uint32_t ch, int mode)
} }
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
return ret; return ret;
} }
@@ -661,7 +661,7 @@ int lc823450_sdc_getcid(uint32_t ch, char *cidstr, int length)
uint8_t cid[16]; uint8_t cid[16];
int ret; int ret;
mcinfo("++++ ch=%" PRId32 " \n", ch); mcinfo("++++ ch=%" PRId32 "\n", ch);
ret = _sdc_semtake(&_sdc_sem[ch]); ret = _sdc_semtake(&_sdc_sem[ch]);
if (ret < 0) if (ret < 0)
@@ -685,7 +685,7 @@ int lc823450_sdc_getcid(uint32_t ch, char *cidstr, int length)
} }
_sdc_semgive(&_sdc_sem[ch]); _sdc_semgive(&_sdc_sem[ch]);
mcinfo("---- end ret=%d \n", ret); mcinfo("---- end ret=%d\n", ret);
return ret; return ret;
} }
+4 -4
View File
@@ -67,16 +67,16 @@ uint32_t get_cpu_ver(void)
switch (reg) switch (reg)
{ {
case MODEM_MAV_ES1: case MODEM_MAV_ES1:
sinfo("ES1 \n"); sinfo("ES1\n");
break; break;
case MODEM_MAV_ES2: case MODEM_MAV_ES2:
sinfo("ES2 \n"); sinfo("ES2\n");
ret = 1; ret = 1;
break; break;
default: default:
sinfo("??? \n"); sinfo("???\n");
break; break;
} }
@@ -119,7 +119,7 @@ void mod_stby_regs(uint32_t enabits, uint32_t disbits)
modifyreg32(ISOCNT, 0, enabits); modifyreg32(ISOCNT, 0, enabits);
} }
/* sinfo("ISOCNT=0x%x, LSISTBY=0x%x \n", /* sinfo("ISOCNT=0x%x, LSISTBY=0x%x\n",
* getreg32(ISOCNT), getreg32(LSISTBY)); * getreg32(ISOCNT), getreg32(LSISTBY));
*/ */
} }
+1 -1
View File
@@ -711,7 +711,7 @@ int up_rtc_gettime(FAR struct timespec *tp)
spin_unlock_irqrestore(NULL, flags); spin_unlock_irqrestore(NULL, flags);
tmrinfo("elapsed = %lld \n", elapsed); tmrinfo("elapsed = %lld\n", elapsed);
/* Convert the elapsed time in seconds and nanoseconds. */ /* Convert the elapsed time in seconds and nanoseconds. */
+1 -1
View File
@@ -849,7 +849,7 @@ static int lpc43_ioctl(FAR struct mtd_dev_s *dev, int cmd, unsigned long arg)
FAR struct lpc43_dev_s *priv = (FAR struct lpc43_dev_s *)dev; FAR struct lpc43_dev_s *priv = (FAR struct lpc43_dev_s *)dev;
int ret = -EINVAL; /* Assume good command with bad parameters */ int ret = -EINVAL; /* Assume good command with bad parameters */
finfo("cmd: %d \n", cmd); finfo("cmd: %d\n", cmd);
switch (cmd) switch (cmd)
{ {
+1 -1
View File
@@ -102,7 +102,7 @@ static void nrf52_dumpnvic(const char *msg, int irq)
irqinfo(" INTCTRL: %08x VECTAB: %08x\n", irqinfo(" INTCTRL: %08x VECTAB: %08x\n",
getreg32(NVIC_INTCTRL), getreg32(NVIC_VECTAB)); getreg32(NVIC_INTCTRL), getreg32(NVIC_VECTAB));
#if 0 #if 0
irqinfo(" SYSH ENABLE MEMFAULT: %08x BUSFAULT: %08x \n", irqinfo(" SYSH ENABLE MEMFAULT: %08x BUSFAULT: %08x\n",
getreg32(NVIC_SYSHCON_MEMFAULTENA), getreg32(NVIC_SYSHCON_MEMFAULTENA),
getreg32(NVIC_SYSHCON_BUSFAULTENA)); getreg32(NVIC_SYSHCON_BUSFAULTENA));
irqinfo(" USGFAULT: %08x SYSTICK: %08x\n", irqinfo(" USGFAULT: %08x SYSTICK: %08x\n",
+1 -1
View File
@@ -262,7 +262,7 @@ static int pplus_fls_ioctl(FAR struct mtd_dev_s *dev,
FAR struct pplus_fls_dev_s *priv = (FAR struct pplus_fls_dev_s *)dev; FAR struct pplus_fls_dev_s *priv = (FAR struct pplus_fls_dev_s *)dev;
int ret = -EINVAL; /* Assume good command with bad parameters */ int ret = -EINVAL; /* Assume good command with bad parameters */
finfo("cmd: %d \n", cmd); finfo("cmd: %d\n", cmd);
switch (cmd) switch (cmd)
{ {
+1 -1
View File
@@ -257,7 +257,7 @@ int arm_pause_handler(int irq, void *c, FAR void *arg)
return OK; return OK;
} }
DPRINTF("cpu%d will be paused \n", cpu); DPRINTF("cpu%d will be paused\n", cpu);
/* Check for false alarms. Such false could occur as a consequence of /* Check for false alarms. Such false could occur as a consequence of
* some deadlock breaking logic that might have already serviced the SG2 * some deadlock breaking logic that might have already serviced the SG2
+1 -1
View File
@@ -1556,7 +1556,7 @@ static int s32k1xx_lpi2c_transfer(FAR struct i2c_master_s *dev,
priv->msgc = count; priv->msgc = count;
priv->flags = msgs->flags; priv->flags = msgs->flags;
i2cinfo("Flags %x, len %d \n", msgs->flags, msgs->length); i2cinfo("Flags %x, len %d\n", msgs->flags, msgs->length);
/* Reset I2C trace logic */ /* Reset I2C trace logic */
+1 -1
View File
@@ -1861,7 +1861,7 @@ static int sam_ifup(struct net_driver_s *dev)
} }
while (sam_linkup(priv) == 0); while (sam_linkup(priv) == 0);
ninfo("Link detected \n"); ninfo("Link detected\n");
/* Enable normal MAC operation */ /* Enable normal MAC operation */
+1 -1
View File
@@ -1922,7 +1922,7 @@ static int sam_ifup(struct net_driver_s *dev)
} }
while (sam_linkup(priv) == 0); while (sam_linkup(priv) == 0);
ninfo("Link detected \n"); ninfo("Link detected\n");
/* Enable normal MAC operation */ /* Enable normal MAC operation */
+1 -1
View File
@@ -2267,7 +2267,7 @@ static int sam_ifup(struct net_driver_s *dev)
} }
while (sam_linkup(priv) == 0); while (sam_linkup(priv) == 0);
ninfo("Link detected \n"); ninfo("Link detected\n");
/* Enable normal MAC operation */ /* Enable normal MAC operation */
+1 -1
View File
@@ -1472,7 +1472,7 @@ struct spi_dev_s *sam_spibus_initialize(int port)
/* Get the port state structure */ /* Get the port state structure */
spiinfo("port: %d \n", port); spiinfo("port: %d\n", port);
#ifdef SAMD2L2_HAVE_SPI0 #ifdef SAMD2L2_HAVE_SPI0
if (port == 0) if (port == 0)
+1 -1
View File
@@ -1555,7 +1555,7 @@ struct spi_dev_s *sam_spibus_initialize(int port)
/* Get the port state structure */ /* Get the port state structure */
spiinfo("port: %d \n", port); spiinfo("port: %d\n", port);
#ifdef SAMD5E5_HAVE_SPI0 #ifdef SAMD5E5_HAVE_SPI0
if (port == 0) if (port == 0)
+1 -1
View File
@@ -2743,7 +2743,7 @@ static int sam_ifup(struct net_driver_s *dev)
} }
while (sam_linkup(priv) == 0); while (sam_linkup(priv) == 0);
ninfo("Link detected \n"); ninfo("Link detected\n");
/* Enable normal MAC operation */ /* Enable normal MAC operation */
+1 -1
View File
@@ -1866,7 +1866,7 @@ static int stm32_i2c_isr_process(struct stm32_i2c_priv_s *priv)
status |= (stm32_i2c_getreg(priv, STM32_I2C_SR2_OFFSET) << 16); status |= (stm32_i2c_getreg(priv, STM32_I2C_SR2_OFFSET) << 16);
i2cerr("ERROR: " i2cerr("ERROR: "
"No correct state detected(start bit, read or write) \n"); "No correct state detected(start bit, read or write)\n");
i2cerr(" state %" PRIi32 "\n", status); i2cerr(" state %" PRIi32 "\n", status);
/* Set condition to terminate ISR and wake waiting thread */ /* Set condition to terminate ISR and wake waiting thread */
+2 -2
View File
@@ -1314,7 +1314,7 @@ static int stm32_setindex(FAR struct qe_lowerhalf_s *lower, uint32_t pos)
if (priv->index_use == false) if (priv->index_use == false)
{ {
snerr("ERROR: QE TIM%d index not registered \n", snerr("ERROR: QE TIM%d index not registered\n",
priv->config->timid); priv->config->timid);
ret = -EPERM; ret = -EPERM;
goto errout; goto errout;
@@ -1464,7 +1464,7 @@ int stm32_qe_index_init(int tim, uint32_t gpio)
stm32_qe_index_irq, priv); stm32_qe_index_irq, priv);
if (ret < 0) if (ret < 0)
{ {
snerr("ERROR: QE TIM%d failed register irq \n", tim); snerr("ERROR: QE TIM%d failed register irq\n", tim);
goto errout; goto errout;
} }
+3 -3
View File
@@ -1969,7 +1969,7 @@ static int stm32_i2c_isr_process(struct stm32_i2c_priv_s *priv)
priv->status |= I2C_SR1_BERR; priv->status |= I2C_SR1_BERR;
} }
i2cinfo(" No correct state detected(start bit, read or write) \n"); i2cinfo(" No correct state detected(start bit, read or write)\n");
i2cinfo(" state %" PRIi32 "\n", status); i2cinfo(" state %" PRIi32 "\n", status);
/* Set condition to terminate ISR and wake waiting thread */ /* Set condition to terminate ISR and wake waiting thread */
@@ -2077,7 +2077,7 @@ static void stm32_i2c_dmarxcallback(DMA_HANDLE handle,
uint32_t regval; uint32_t regval;
#endif #endif
i2cinfo("DMA rx callback, status = %d \n", status); i2cinfo("DMA rx callback, status = %d\n", status);
FAR struct stm32_i2c_priv_s *priv = (FAR struct stm32_i2c_priv_s *)arg; FAR struct stm32_i2c_priv_s *priv = (FAR struct stm32_i2c_priv_s *)arg;
@@ -2134,7 +2134,7 @@ static void stm32_i2c_dmatxcallback(DMA_HANDLE handle,
uint32_t regval; uint32_t regval;
#endif #endif
i2cinfo("DMA tx callback, status = %d \n", status); i2cinfo("DMA tx callback, status = %d\n", status);
FAR struct stm32_i2c_priv_s *priv = (FAR struct stm32_i2c_priv_s *)arg; FAR struct stm32_i2c_priv_s *priv = (FAR struct stm32_i2c_priv_s *)arg;
+1 -1
View File
@@ -74,7 +74,7 @@ static inline void lm32_registerdump(void)
if (g_current_regs) if (g_current_regs)
{ {
_alert("EPC:%08x \n", _alert("EPC:%08x\n",
g_current_regs[REG_EPC]); g_current_regs[REG_EPC]);
_alert(" X0:%08x A0:%08x A1:%08x A2:%08x " _alert(" X0:%08x A0:%08x A1:%08x A2:%08x "
" A3:%08x A4:%08x A5:%08x A6:%08x\n", " A3:%08x A4:%08x A5:%08x A6:%08x\n",
+1 -1
View File
@@ -74,7 +74,7 @@ static inline void mineva_registerdump(void)
if (g_current_regs) if (g_current_regs)
{ {
_alert("EPC:%08x \n", g_current_regs[REG_CSR_MEPC]); _alert("EPC:%08x\n", g_current_regs[REG_CSR_MEPC]);
_alert(" X0:%08x A0:%08x A1:%08x A2:%08x " _alert(" X0:%08x A0:%08x A1:%08x A2:%08x "
" A3:%08x A4:%08x A5:%08x A6:%08x\n", " A3:%08x A4:%08x A5:%08x A6:%08x\n",
g_current_regs[REG_X0_NDX], g_current_regs[REG_X1_NDX], g_current_regs[REG_X0_NDX], g_current_regs[REG_X1_NDX],
+5 -5
View File
@@ -841,7 +841,7 @@ uint16_t hw_usb_hread_devadd (uint16_t devsel)
if (devadr > USB_MAXDEVADDR) if (devadr > USB_MAXDEVADDR)
{ {
uerr("ERROR: device address %d is more than max device \ uerr("ERROR: device address %d is more than max device \
address. \n", devadd); address.\n", devadd);
return -ENODEV; return -ENODEV;
} }
else else
@@ -2765,7 +2765,7 @@ void usb_hstd_buf_to_fifo (uint8_t *buffer, size_t buflen, uint16_t pipe,
/* FIFO access error */ /* FIFO access error */
syslog (LOG_INFO, "### FIFO access error \n"); syslog (LOG_INFO, "### FIFO access error\n");
usb_hstd_forced_termination(pipe, (uint16_t) USB_DATA_ERR); usb_hstd_forced_termination(pipe, (uint16_t) USB_DATA_ERR);
break; break;
@@ -6215,7 +6215,7 @@ static void rx65n_usbhost_bottomhalf (void *arg)
{ {
/* Yes.. connected. */ /* Yes.. connected. */
connected_times ++; connected_times++;
syslog (LOG_INFO, "NuttX: USB Device Connected. %d\n", syslog (LOG_INFO, "NuttX: USB Device Connected. %d\n",
connected_times); connected_times);
priv->connected = true; priv->connected = true;
@@ -6730,7 +6730,7 @@ static int rx65n_usbhost_epalloc(struct usbhost_driver_s *drvr,
/* Note down the pipe number for reference */ /* Note down the pipe number for reference */
ed ->pipenum = pipe_num; ed->pipenum = pipe_num;
/* Get the direction of the endpoint. For control endpoints, the /* Get the direction of the endpoint. For control endpoints, the
* direction is in the TD. * direction is in the TD.
@@ -7615,7 +7615,7 @@ static ssize_t rx65n_usbhost_transfer(struct usbhost_driver_s *drvr,
case TD_CC_DEVNOTRESPONDING: case TD_CC_DEVNOTRESPONDING:
xfrinfo->wdhwait = false; xfrinfo->wdhwait = false;
transfer_retry_count ++; transfer_retry_count++;
nbytes = -EBUSY; nbytes = -EBUSY;
break; break;
+2 -2
View File
@@ -754,7 +754,7 @@ static int bl602_i2c_transfer(struct i2c_master_s *dev,
} }
else else
{ {
i2cerr("i2c transfer error, event = %d \n", priv->i2cstate); i2cerr("i2c transfer error, event = %d\n", priv->i2cstate);
} }
nxsem_post(&priv->sem_isr); nxsem_post(&priv->sem_isr);
@@ -938,7 +938,7 @@ static int bl602_i2c_irq(int cpuint, void *context, void *arg)
} }
else else
{ {
i2cerr("other interrupt \n"); i2cerr("other interrupt\n");
priv->i2cstate = EV_I2C_UNKNOW_INT; priv->i2cstate = EV_I2C_UNKNOW_INT;
bl602_i2c_callback(priv); bl602_i2c_callback(priv);
return -1; return -1;
+2 -2
View File
@@ -529,7 +529,7 @@ static void bl602_net_reply(struct bl602_net_driver_s *priv)
{ {
/* NOTIC: The release path of tx buffer cannot acquire net lock */ /* NOTIC: The release path of tx buffer cannot acquire net lock */
nerr("can not replay due to no tx buffer! \n"); nerr("can not replay due to no tx buffer!\n");
PANIC(); PANIC();
} }
} }
@@ -1786,7 +1786,7 @@ bl602_net_ioctl(struct net_driver_s *dev, int cmd, unsigned long arg)
memcpy(priv->wlan->mac, memcpy(priv->wlan->mac,
priv->net_dev.d_mac.ether.ether_addr_octet, priv->net_dev.d_mac.ether.ether_addr_octet,
6); 6);
wlinfo("now in station mode \n"); wlinfo("now in station mode\n");
priv->current_mode = IW_MODE_INFRA; priv->current_mode = IW_MODE_INFRA;
return OK; return OK;
} }
+1 -1
View File
@@ -159,7 +159,7 @@ int esp32c3_freerun_initialize(struct esp32c3_freerun_s *freerun, int chan,
pre = esp32c3_clk_apb_freq() * resolution / USEC_PER_SEC; pre = esp32c3_clk_apb_freq() * resolution / USEC_PER_SEC;
tmrinfo("pre=% "PRIu16 " clk=%d \n", pre, esp32c3_clk_apb_freq()); tmrinfo("pre=% "PRIu16 " clk=%d\n", pre, esp32c3_clk_apb_freq());
/* Configure TIMER prescaler */ /* Configure TIMER prescaler */
@@ -632,7 +632,7 @@ static int esp32c3_ioctl(struct mtd_dev_s *dev, int cmd,
unsigned long arg) unsigned long arg)
{ {
int ret = OK; int ret = OK;
finfo("cmd: %d \n", cmd); finfo("cmd: %d\n", cmd);
switch (cmd) switch (cmd)
{ {
+1 -1
View File
@@ -95,7 +95,7 @@ static inline void riscv_registerdump(volatile uint32_t *regs)
{ {
/* Are user registers available from interrupt processing? */ /* Are user registers available from interrupt processing? */
_alert("EPC:%08x \n", regs[REG_EPC]); _alert("EPC:%08x\n", regs[REG_EPC]);
_alert("A0:%08x A1:%08x A2:%08x A3:%08x A4:%08x A5:%08x " _alert("A0:%08x A1:%08x A2:%08x A3:%08x A4:%08x A5:%08x "
"A6:%08x A7:%08x\n", "A6:%08x A7:%08x\n",
regs[REG_A0], regs[REG_A1], regs[REG_A2], regs[REG_A3], regs[REG_A0], regs[REG_A1], regs[REG_A2], regs[REG_A3],
+10 -10
View File
@@ -98,35 +98,35 @@ static inline void riscv_registerdump(volatile uintptr_t *regs)
{ {
/* Are user registers available from interrupt processing? */ /* Are user registers available from interrupt processing? */
_alert("EPC:%016" PRIx64 " \n", regs[REG_EPC]); _alert("EPC:%016" PRIx64 "\n", regs[REG_EPC]);
_alert("A0:%016" PRIx64 " A1:%01" PRIx64 "6 A2:%016" PRIx64 _alert("A0:%016" PRIx64 " A1:%01" PRIx64 "6 A2:%016" PRIx64
" A3:%016" PRIx64 " \n", " A3:%016" PRIx64 "\n",
regs[REG_A0], regs[REG_A1], regs[REG_A2], regs[REG_A3]); regs[REG_A0], regs[REG_A1], regs[REG_A2], regs[REG_A3]);
_alert("A4:%016" PRIx64 " A5:%016" PRIx64 "A6:%016" PRIx64 _alert("A4:%016" PRIx64 " A5:%016" PRIx64 "A6:%016" PRIx64
" A7:%016" PRIx64 " \n", " A7:%016" PRIx64 "\n",
regs[REG_A4], regs[REG_A5], regs[REG_A6], regs[REG_A7]); regs[REG_A4], regs[REG_A5], regs[REG_A6], regs[REG_A7]);
_alert("T0:%016" PRIx64 " T1:%016" PRIx64 " T2:%016" PRIx64 _alert("T0:%016" PRIx64 " T1:%016" PRIx64 " T2:%016" PRIx64
" T3:%016" PRIx64 " \n", " T3:%016" PRIx64 "\n",
regs[REG_T0], regs[REG_T1], regs[REG_T2], regs[REG_T3]); regs[REG_T0], regs[REG_T1], regs[REG_T2], regs[REG_T3]);
_alert("T4:%016" PRIx64 " T5:%016" PRIx64 " T6:%016" PRIx64 " \n", _alert("T4:%016" PRIx64 " T5:%016" PRIx64 " T6:%016" PRIx64 "\n",
regs[REG_T4], regs[REG_T5], regs[REG_T6]); regs[REG_T4], regs[REG_T5], regs[REG_T6]);
_alert("S0:%016" PRIx64 " S1:%016" PRIx64 " S2:%016" PRIx64 _alert("S0:%016" PRIx64 " S1:%016" PRIx64 " S2:%016" PRIx64
" S3:%016" PRIx64 " \n", " S3:%016" PRIx64 "\n",
regs[REG_S0], regs[REG_S1], regs[REG_S2], regs[REG_S3]); regs[REG_S0], regs[REG_S1], regs[REG_S2], regs[REG_S3]);
_alert("S4:%016" PRIx64 " S5:%016" PRIx64 " S6:%016" PRIx64 _alert("S4:%016" PRIx64 " S5:%016" PRIx64 " S6:%016" PRIx64
" S7:%016" PRIx64 " \n", " S7:%016" PRIx64 "\n",
regs[REG_S4], regs[REG_S5], regs[REG_S6], regs[REG_S7]); regs[REG_S4], regs[REG_S5], regs[REG_S6], regs[REG_S7]);
_alert("S8:%016" PRIx64 " S9:%016" PRIx64 " S10:%016" PRIx64 _alert("S8:%016" PRIx64 " S9:%016" PRIx64 " S10:%016" PRIx64
" S11:%016" PRIx64 " \n", " S11:%016" PRIx64 "\n",
regs[REG_S8], regs[REG_S9], regs[REG_S10], regs[REG_S11]); regs[REG_S8], regs[REG_S9], regs[REG_S10], regs[REG_S11]);
#ifdef RISCV_SAVE_GP #ifdef RISCV_SAVE_GP
_alert("GP:%016" PRIx64 " SP:%016" PRIx64 " FP:%016" PRIx64 _alert("GP:%016" PRIx64 " SP:%016" PRIx64 " FP:%016" PRIx64
" TP:%016" PRIx64 " RA:%016" PRIx64 " \n", " TP:%016" PRIx64 " RA:%016" PRIx64 "\n",
regs[REG_GP], regs[REG_SP], regs[REG_FP], regs[REG_TP], regs[REG_GP], regs[REG_SP], regs[REG_FP], regs[REG_TP],
regs[REG_RA]); regs[REG_RA]);
#else #else
_alert("SP:%016" PRIx64 " FP:%016" PRIx64 " TP:%016" PRIx64 _alert("SP:%016" PRIx64 " FP:%016" PRIx64 " TP:%016" PRIx64
" RA:%016" PRIx64 " \n", " RA:%016" PRIx64 "\n",
regs[REG_SP], regs[REG_FP], regs[REG_TP], regs[REG_RA]); regs[REG_SP], regs[REG_FP], regs[REG_TP], regs[REG_RA]);
#endif #endif
} }
+2 -2
View File
@@ -61,7 +61,7 @@ void up_fault(int irq, uint64_t *regs)
_alert("EPC:%016" PRIx64 "\n", _alert("EPC:%016" PRIx64 "\n",
CURRENT_REGS[REG_EPC]); CURRENT_REGS[REG_EPC]);
_alert("Fault IRQ=%d \n", irq); _alert("Fault IRQ=%d\n", irq);
/* Dump register info */ /* Dump register info */
@@ -81,7 +81,7 @@ void up_fault(int irq, uint64_t *regs)
CURRENT_REGS[REG_T2], CURRENT_REGS[REG_T3]); CURRENT_REGS[REG_T2], CURRENT_REGS[REG_T3]);
_alert("T4:%016" PRIx64 " T5:%016" PRIx64 _alert("T4:%016" PRIx64 " T5:%016" PRIx64
" T6:%016" PRIx64 " \n", " T6:%016" PRIx64 "\n",
CURRENT_REGS[REG_T4], CURRENT_REGS[REG_T5], CURRENT_REGS[REG_T4], CURRENT_REGS[REG_T5],
CURRENT_REGS[REG_T6]); CURRENT_REGS[REG_T6]);
+1 -1
View File
@@ -178,7 +178,7 @@ static int esp32_ble_recv_cb(uint8_t *data, uint16_t len)
if (!valid) if (!valid)
{ {
wlerr("Invalid H4 header \n"); wlerr("Invalid H4 header\n");
ret = ERROR; ret = ERROR;
} }
else else
+1 -1
View File
@@ -2179,7 +2179,7 @@ static void *queue_create_wrapper(uint32_t queue_len, uint32_t item_size)
if (ret < 0) if (ret < 0)
{ {
wlerr("Failed to create mqueue %d \n", ret); wlerr("Failed to create mqueue %d\n", ret);
kmm_free(mq_adpt); kmm_free(mq_adpt);
return NULL; return NULL;
} }
+1 -1
View File
@@ -1908,7 +1908,7 @@ static int esp32_ioctl(struct mtd_dev_s *dev, int cmd,
int ret = -EINVAL; int ret = -EINVAL;
struct esp32_spiflash_s *priv = MTD2PRIV(dev); struct esp32_spiflash_s *priv = MTD2PRIV(dev);
finfo("cmd: %d \n", cmd); finfo("cmd: %d\n", cmd);
switch (cmd) switch (cmd)
{ {
+1 -1
View File
@@ -159,7 +159,7 @@ int esp32s2_freerun_initialize(struct esp32s2_freerun_s *freerun,
pre = esp_clk_apb_freq() * resolution / USEC_PER_SEC; pre = esp_clk_apb_freq() * resolution / USEC_PER_SEC;
tmrinfo("pre= %" PRIu16 " clk=%d \n", pre, esp_clk_apb_freq()); tmrinfo("pre= %" PRIu16 " clk=%d\n", pre, esp_clk_apb_freq());
/* Configure TIMER prescaler */ /* Configure TIMER prescaler */
@@ -113,7 +113,7 @@ static void gs2200m_irq_enable(void)
{ {
irqstate_t flags = enter_critical_section(); irqstate_t flags = enter_critical_section();
wlinfo("== ec:%" PRId32 " called=%" PRId32 " \n", wlinfo("== ec:%" PRId32 " called=%" PRId32 "\n",
_enable_count, _n_called++); _enable_count, _n_called++);
if (0 == _enable_count) if (0 == _enable_count)
@@ -134,7 +134,7 @@ static void gs2200m_irq_disable(void)
{ {
irqstate_t flags = enter_critical_section(); irqstate_t flags = enter_critical_section();
wlinfo("== ec:%" PRId32 " called=%" PRId32 " \n", wlinfo("== ec:%" PRId32 " called=%" PRId32 "\n",
_enable_count, _n_called++); _enable_count, _n_called++);
_enable_count--; _enable_count--;
@@ -336,7 +336,7 @@ int cxd56_bringup(void)
ret = board_pwm_setup(); ret = board_pwm_setup();
if (ret < 0) if (ret < 0)
{ {
_err("ERROR: Failed to initialize pwm. \n"); _err("ERROR: Failed to initialize pwm.\n");
} }
#endif #endif
@@ -344,7 +344,7 @@ int cxd56_bringup(void)
ret = cxd56_adcinitialize(); ret = cxd56_adcinitialize();
if (ret < 0) if (ret < 0)
{ {
_err("ERROR: Failed to initialize adc. \n"); _err("ERROR: Failed to initialize adc.\n");
} }
#endif #endif
@@ -352,7 +352,7 @@ int cxd56_bringup(void)
ret = userled_lower_initialize("/dev/userleds"); ret = userled_lower_initialize("/dev/userleds");
if (ret < 0) if (ret < 0)
{ {
_err("ERROR: Failed to initialize led. \n"); _err("ERROR: Failed to initialize led.\n");
} }
#endif #endif
@@ -405,7 +405,7 @@ int cxd56_bringup(void)
ret = board_sdcard_initialize(); ret = board_sdcard_initialize();
if (ret < 0) if (ret < 0)
{ {
_err("ERROR: Failed to initialize sdhci. \n"); _err("ERROR: Failed to initialize sdhci.\n");
} }
#endif #endif
@@ -443,7 +443,7 @@ int cxd56_bringup(void)
ret = board_gs2200m_initialize("/dev/gs2200m", 5); ret = board_gs2200m_initialize("/dev/gs2200m", 5);
if (ret < 0) if (ret < 0)
{ {
_err("ERROR: Failed to initialize GS2200M. \n"); _err("ERROR: Failed to initialize GS2200M.\n");
} }
#endif #endif
@@ -451,7 +451,7 @@ int cxd56_bringup(void)
ret = cxd56_gnssinitialize("/dev/gps"); ret = cxd56_gnssinitialize("/dev/gps");
if (ret < 0) if (ret < 0)
{ {
_err("ERROR: Failed to initialize gnss. \n"); _err("ERROR: Failed to initialize gnss.\n");
} }
#endif #endif
@@ -459,7 +459,7 @@ int cxd56_bringup(void)
ret = cxd56_geofenceinitialize("/dev/geofence"); ret = cxd56_geofenceinitialize("/dev/geofence");
if (ret < 0) if (ret < 0)
{ {
_err("ERROR: Failed to initialize geofence. \n"); _err("ERROR: Failed to initialize geofence.\n");
} }
#endif #endif
@@ -82,7 +82,8 @@ static struct work_s g_sdcard_work;
#endif #endif
static struct pm_cpu_freqlock_s g_hv_lock = static struct pm_cpu_freqlock_s g_hv_lock =
PM_CPUFREQLOCK_INIT(PM_CPUFREQLOCK_TAG('S','D',0), PM_CPUFREQLOCK_FLAG_HV); PM_CPUFREQLOCK_INIT(PM_CPUFREQLOCK_TAG('S', 'D', 0),
PM_CPUFREQLOCK_FLAG_HV);
/**************************************************************************** /****************************************************************************
* Private Functions * Private Functions
@@ -348,7 +349,7 @@ int board_sdcard_initialize(void)
NULL); NULL);
if (ret < 0) if (ret < 0)
{ {
_err("ERROR: Failed to configure GPIO int. \n"); _err("ERROR: Failed to configure GPIO int.\n");
} }
/* Enabling Interrupt */ /* Enabling Interrupt */
@@ -545,7 +545,7 @@ static int imxrt_flexspi_nor_ioctl(FAR struct mtd_dev_s *dev,
(FAR struct imxrt_flexspi_nor_dev_s *)dev; (FAR struct imxrt_flexspi_nor_dev_s *)dev;
int ret = -EINVAL; /* Assume good command with bad parameters */ int ret = -EINVAL; /* Assume good command with bad parameters */
finfo("cmd: %d \n", cmd); finfo("cmd: %d\n", cmd);
switch (cmd) switch (cmd)
{ {
@@ -75,7 +75,7 @@ int lc823450_wm8776initialize(int minor)
char devname[12]; char devname[12];
int ret; int ret;
ainfo("Initializing WM8776 \n"); ainfo("Initializing WM8776\n");
/* Initialize I2C */ /* Initialize I2C */
@@ -113,7 +113,7 @@ int stm32_spisd_initialize(int port, int minor)
stm32_configgpio(GPIO_SPI1_CS); /* Assign CS */ stm32_configgpio(GPIO_SPI1_CS); /* Assign CS */
stm32_gpiowrite(GPIO_SPI1_CS, 1); /* Ensure the CS is inactive */ stm32_gpiowrite(GPIO_SPI1_CS, 1); /* Ensure the CS is inactive */
mcinfo("INFO: Initializing mmcsd port %d minor %d \n", mcinfo("INFO: Initializing mmcsd port %d minor %d\n",
port, minor); port, minor);
spi = stm32_spibus_initialize(port); spi = stm32_spibus_initialize(port);
@@ -518,7 +518,7 @@ int stm32_bringup(void)
ret = stm32_gs2200m_initialize("/dev/gs2200m", 3); ret = stm32_gs2200m_initialize("/dev/gs2200m", 3);
if (ret < 0) if (ret < 0)
{ {
serr("ERROR: Failed to initialize GS2200M: %d \n", ret); serr("ERROR: Failed to initialize GS2200M: %d\n", ret);
} }
#endif #endif
@@ -107,7 +107,7 @@ static void gs2200m_irq_enable(void)
irqstate_t flags = spin_lock_irqsave(NULL); irqstate_t flags = spin_lock_irqsave(NULL);
uint32_t dready = 0; uint32_t dready = 0;
wlinfo("== ec:%" PRId32 " called=%" PRId32 " \n", wlinfo("== ec:%" PRId32 " called=%" PRId32 "\n",
_enable_count, _n_called++); _enable_count, _n_called++);
if (0 == _enable_count) if (0 == _enable_count)
@@ -130,7 +130,7 @@ static void gs2200m_irq_enable(void)
{ {
/* Call g_irq_handler directly */ /* Call g_irq_handler directly */
wlinfo("== ** call irq handler ** \n"); wlinfo("== ** call irq handler **\n");
g_irq_handler(0, NULL, g_irq_arg); g_irq_handler(0, NULL, g_irq_arg);
} }
} }
@@ -143,7 +143,7 @@ static void gs2200m_irq_disable(void)
{ {
irqstate_t flags = spin_lock_irqsave(NULL); irqstate_t flags = spin_lock_irqsave(NULL);
wlinfo("== ec:%" PRId32 " called=%" PRId32 " \n", wlinfo("== ec:%" PRId32 " called=%" PRId32 "\n",
_enable_count, _n_called++); _enable_count, _n_called++);
_enable_count--; _enable_count--;
@@ -82,7 +82,7 @@ int stm32_mmcsd_initialize(int port, int minor)
stm32_configgpio(GPIO_MMCSD_NSS); /* Assign CS */ stm32_configgpio(GPIO_MMCSD_NSS); /* Assign CS */
stm32_gpiowrite(GPIO_MMCSD_NSS, 1); /* Ensure the CS is inactive */ stm32_gpiowrite(GPIO_MMCSD_NSS, 1); /* Ensure the CS is inactive */
mcinfo("INFO: Initializing mmcsd port %d minor %d \n", mcinfo("INFO: Initializing mmcsd port %d minor %d\n",
port, minor); port, minor);
spi = stm32_spibus_initialize(port); spi = stm32_spibus_initialize(port);

Some files were not shown because too many files have changed in this diff Show More