Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: ffs-test: fix header path

When compiling this program the functionfs.h header cannot be found, producing:
ffs-test.c:40: fatal error: linux/usb/functionfs.h: No such file or directory

This patch also fixes the following warning:
ffs-test.c:453: warning: format ‘%4d’ expects type ‘int’, but argument 3 has type ‘size_t’

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Davidlohr Bueso and committed by
Greg Kroah-Hartman
d105e74e 6960f40a

+2 -2
+2 -2
tools/usb/ffs-test.c
··· 37 37 #include <sys/types.h> 38 38 #include <unistd.h> 39 39 40 - #include <linux/usb/functionfs.h> 40 + #include "../../include/linux/usb/functionfs.h" 41 41 42 42 43 43 /******************** Little Endian Handling ********************************/ ··· 450 450 len, expected, *p); 451 451 for (p = buf, len = 0; len < nbytes; ++p, ++len) { 452 452 if (0 == (len % 32)) 453 - fprintf(stderr, "%4d:", len); 453 + fprintf(stderr, "%4zd:", len); 454 454 fprintf(stderr, " %02x", *p); 455 455 if (31 == (len % 32)) 456 456 fprintf(stderr, "\n");