diff --git a/arch/arm/src/sama5/sam_ohci.c b/arch/arm/src/sama5/sam_ohci.c index f8a900a037..a04cfd3b54 100644 --- a/arch/arm/src/sama5/sam_ohci.c +++ b/arch/arm/src/sama5/sam_ohci.c @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -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,