Fix logging of Custom Write
This way we actually trace print the written buffer, even if the caller doesn't care about how much data he/she actually wrote. Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
534dd2f34b
commit
19b560d9b2
@ -690,7 +690,7 @@ dc_serial_write (dc_serial_t *device, const void *data, size_t size, size_t *act
|
||||
if (actual)
|
||||
*actual = nbytes;
|
||||
},
|
||||
write, data, size, actual);
|
||||
write, data, size, &nbytes);
|
||||
|
||||
struct timeval tve, tvb;
|
||||
if (device->halfduplex) {
|
||||
|
||||
@ -474,7 +474,7 @@ dc_serial_write (dc_serial_t *device, const void *data, size_t size, size_t *act
|
||||
if (actual)
|
||||
*actual = nbytes;
|
||||
},
|
||||
write, data, size, actual);
|
||||
write, data, size, &nbytes);
|
||||
|
||||
LARGE_INTEGER begin, end, freq;
|
||||
if (device->halfduplex) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user