]> asedeno.scripts.mit.edu Git - linux.git/commit
usb: dwc3: trace: pass trace buffer size to decoding functions
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 4 Feb 2019 13:43:38 +0000 (15:43 +0200)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 4 Feb 2019 13:43:38 +0000 (15:43 +0200)
commit7790b3556fccc555ae422f1576e97bf34c8ab8b6
tree1f7c4c8dfe1ef22b0666c57bcc108c3eece71232
parent3aec99154db3a95572bb92aa470589585e37df06
usb: dwc3: trace: pass trace buffer size to decoding functions

Instead of assuming that our buffer is big enough, let's pass the
buffer size around so printing functions can make sure they won't
overflow the buffer.

Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc3/debug.h
drivers/usb/dwc3/trace.h