diff options
author | Louis Yung-Chieh Lo <yjlou@chromium.org> | 2014-05-02 12:22:24 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-05-07 03:41:22 +0000 |
commit | 4ba7a1502dabc4728d8e68572642dafafbd54692 (patch) | |
tree | f6183dfe771668a3c3aa77b42c3002af17dd9235 /chip/stm32/usb_pd_phy.c | |
parent | 58c50a970ab7df4f0e3f1b188e6b1966a9d47d1d (diff) | |
download | chrome-ec-4ba7a1502dabc4728d8e68572642dafafbd54692.tar.gz |
cleanup: add square brackets to make test parser easier
This may not contain all. I filtered out possible code by the
following command:
find . -name "*.h*" -o -name "*.c*" | xargs grep -n CPRINTF | \
grep -v "\[" | grep -v define | less
BUG=none
BRANCH=none
TEST=make buildall tuntests
Change-Id: I674f84f5966b34aeb8d4321d22629b450627a120
Signed-off-by: Louis Yung-Chieh Lo <yjlou@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/197997
Diffstat (limited to 'chip/stm32/usb_pd_phy.c')
-rw-r--r-- | chip/stm32/usb_pd_phy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chip/stm32/usb_pd_phy.c b/chip/stm32/usb_pd_phy.c index 4a4e63b51b..bb402ee703 100644 --- a/chip/stm32/usb_pd_phy.c +++ b/chip/stm32/usb_pd_phy.c @@ -84,7 +84,7 @@ static int wait_bits(int nb) && !(STM32_TIM_SR(TIM_RX) & 4)) ; /* optimized for latency, not CPU usage ... */ if (dma_bytes_done(rx, PD_MAX_RAW_SIZE) < nb) { - CPRINTF("TMOUT RX %d/%d\n", + CPRINTF("[%T PD TMOUT RX %d/%d]\n", dma_bytes_done(rx, PD_MAX_RAW_SIZE), nb); return -1; } @@ -131,7 +131,7 @@ int pd_dequeue_bits(void *ctxt, int off, int len, uint32_t *val) return -1; } stream_err: - CPRINTF("Invalid %d @%d\n", cnt, off); + CPRINTF("[%T PD Invalid %d @%d]\n", cnt, off); return -1; } @@ -155,7 +155,7 @@ int pd_find_preamble(void *ctxt) !(STM32_TIM_SR(TIM_RX) & 4)) ; if (STM32_TIM_SR(TIM_RX) & 4) { - CPRINTF("TMOUT RX %d/%d\n", + CPRINTF("[%T PD TMOUT RX %d/%d]\n", PD_MAX_RAW_SIZE - rx->cndtr, bit); return -1; } @@ -524,7 +524,7 @@ void *pd_hw_init(void) STM32_EXTI_IMR |= EXTI_COMP_MASK; task_enable_irq(IRQ_COMP); - CPRINTF("USB PD initialized\n"); + CPRINTF("[%T USB PD initialized]\n"); return raw_samples; } |