Skip to content

Commit

Permalink
fix printf
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackistang committed Nov 27, 2020
1 parent bf0dd36 commit a2a5d4a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/example_events.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ void
my_buff_evt_fn(lwrb_t* buff, lwrb_evt_type_t type, size_t len) {
switch (type) {
case LWRB_EVT_RESET:
printf("[EVT] Buffer reset event!\r\n");
rt_kprintf("[EVT] Buffer reset event!\r\n");
break;
case LWRB_EVT_READ:
printf("[EVT] Buffer read event: %d byte(s)!\r\n", (int)len);
rt_kprintf("[EVT] Buffer read event: %d byte(s)!\r\n", (int)len);
break;
case LWRB_EVT_WRITE:
printf("[EVT] Buffer write event: %d byte(s)!\r\n", (int)len);
rt_kprintf("[EVT] Buffer write event: %d byte(s)!\r\n", (int)len);
break;
default: break;
}
Expand Down

0 comments on commit a2a5d4a

Please sign in to comment.