RE: [PATCH v2 6/9] usb: dwc3: debug: remove static char buffer from dwc3_decode_event()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Felipe Balbi
> Sent: 17 May 2017 14:06
> Instead, we can require caller to pass a buffer for the function to
> use. This cleans things quite a bit.

This is 2017 not 1982, you just can't pass an unsized char[] through
to code that is (presumably) going to do an sprint() into it.

You could define a structure containing a fixed size array,
or a variable-sized structure where the first member is the
size of the buffer area.

	David

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux