arch/arm/src/sama5/sam_ohci.c: Fix syslog formats
This commit is contained in:
parent
ad158866ed
commit
cf9e8bb03e
@ -25,6 +25,7 @@
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <inttypes.h>
|
||||
#include <stdint.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
@ -1338,7 +1339,7 @@ static inline int sam_reminted(struct sam_ed_s *ed)
|
||||
#ifdef CONFIG_USBHOST_TRACE
|
||||
usbhost_vtrace1(OHCI_VTRACE1_VIRTED, (uintptr_t)ed);
|
||||
#else
|
||||
uinfo("ed: %08x head: %08x next: %08x offset: %d\n",
|
||||
uinfo("ed: %p head: %08" PRIxPTR " next: %08" PRIx32 " offset: %d\n",
|
||||
ed, physhead, head ? head->hw.nexted : 0, offset);
|
||||
#endif
|
||||
|
||||
@ -1382,7 +1383,7 @@ static inline int sam_reminted(struct sam_ed_s *ed)
|
||||
#ifdef CONFIG_USBHOST_TRACE
|
||||
usbhost_vtrace1(OHCI_VTRACE1_VIRTED, (uintptr_t)ed);
|
||||
#else
|
||||
uinfo("ed: %08x head: %08x next: %08x\n",
|
||||
uinfo("ed: %p head: %08" PRIxPTR " next: %08" PRIx32 "\n",
|
||||
ed, physhead, head ? head->hw.nexted : 0);
|
||||
#endif
|
||||
|
||||
@ -3312,7 +3313,7 @@ static int sam_transfer_common(struct sam_rhport_s *rhport,
|
||||
(ed->hw.ctrl & ED_CONTROL_EN_MASK) >> ED_CONTROL_EN_SHIFT,
|
||||
(uint16_t)buflen);
|
||||
#else
|
||||
uinfo("EP%d %s toggle: %d maxpacket: %d buflen: %d\n",
|
||||
uinfo("EP%" PRId32 " %s toggle: %d maxpacket: %" PRId32 " buflen: %zd\n",
|
||||
(ed->hw.ctrl & ED_CONTROL_EN_MASK) >> ED_CONTROL_EN_SHIFT,
|
||||
in ? "IN" : "OUT",
|
||||
(ed->hw.headp & ED_HEADP_C) != 0 ? 1 : 0,
|
||||
|
Loading…
Reference in New Issue
Block a user