diff options
author | Cástor Muñoz <cmvidal@gmail.com> | 2016-02-16 21:36:27 +0100 |
---|---|---|
committer | Cástor Muñoz <cmvidal@gmail.com> | 2016-02-16 21:42:43 +0100 |
commit | 51389955fbd4a33793a2dc0ba11d0117a160b22f (patch) | |
tree | 06e32ad818f4a3c537e2edfcdb37536df1ee63f6 /firmware/target/arm/usb-s3c6400x.c | |
parent | ff637c7641c7dca03ac8b1c73d3e0f6e01995fff (diff) | |
download | rockbox-51389955fbd4a33793a2dc0ba11d0117a160b22f.tar.gz rockbox-51389955fbd4a33793a2dc0ba11d0117a160b22f.zip |
usb-s3c6400x: fix broken build for LOGF_ENABLE
Change-Id: I4513425b887a0a79b03420ef82fd82bd90e7bafa
Diffstat (limited to 'firmware/target/arm/usb-s3c6400x.c')
-rw-r--r-- | firmware/target/arm/usb-s3c6400x.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/firmware/target/arm/usb-s3c6400x.c b/firmware/target/arm/usb-s3c6400x.c index 42d56b9bf9..27164aef69 100644 --- a/firmware/target/arm/usb-s3c6400x.c +++ b/firmware/target/arm/usb-s3c6400x.c | |||
@@ -151,7 +151,7 @@ static void ep_transfer(int ep, void *ptr, int len, bool out) | |||
151 | else | 151 | else |
152 | commit_dcache_range(ptr, len); | 152 | commit_dcache_range(ptr, len); |
153 | 153 | ||
154 | logf("pkt=%d dma=%lx", nb_packets, DEPDMA(ep, out)); | 154 | logf("pkt=%d dma=%lx", nb_packets, (unsigned long)DEPDMA(ep, out)); |
155 | 155 | ||
156 | // if (!out) while (((GNPTXSTS & 0xffff) << 2) < MIN(mps, length)); | 156 | // if (!out) while (((GNPTXSTS & 0xffff) << 2) < MIN(mps, length)); |
157 | 157 | ||
@@ -507,7 +507,7 @@ static void handle_ep_int(int ep, bool out) | |||
507 | panicf("usb-drv: setup not on EP0, this is impossible"); | 507 | panicf("usb-drv: setup not on EP0, this is impossible"); |
508 | if((DEPTSIZ(ep, true) & DEPTSIZ_xfersize_bits) != 0) | 508 | if((DEPTSIZ(ep, true) & DEPTSIZ_xfersize_bits) != 0) |
509 | { | 509 | { |
510 | logf("usb-drv: ignore spurious setup (xfersize=%ld)", DOEPTSIZ(ep) & DEPTSIZ_xfersize_bits); | 510 | logf("usb-drv: ignore spurious setup (xfersize=%ld)", DEPTSIZ(ep, true) & DEPTSIZ_xfersize_bits); |
511 | prepare_setup_ep0(); | 511 | prepare_setup_ep0(); |
512 | } | 512 | } |
513 | else | 513 | else |