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>
This commit is contained in:
parent
6960f40a95
commit
d105e74eff
1 changed files with 2 additions and 2 deletions
|
@ -37,7 +37,7 @@
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
#include <linux/usb/functionfs.h>
|
#include "../../include/linux/usb/functionfs.h"
|
||||||
|
|
||||||
|
|
||||||
/******************** Little Endian Handling ********************************/
|
/******************** Little Endian Handling ********************************/
|
||||||
|
@ -450,7 +450,7 @@ empty_out_buf(struct thread *ignore, const void *buf, size_t nbytes)
|
||||||
len, expected, *p);
|
len, expected, *p);
|
||||||
for (p = buf, len = 0; len < nbytes; ++p, ++len) {
|
for (p = buf, len = 0; len < nbytes; ++p, ++len) {
|
||||||
if (0 == (len % 32))
|
if (0 == (len % 32))
|
||||||
fprintf(stderr, "%4d:", len);
|
fprintf(stderr, "%4zd:", len);
|
||||||
fprintf(stderr, " %02x", *p);
|
fprintf(stderr, " %02x", *p);
|
||||||
if (31 == (len % 32))
|
if (31 == (len % 32))
|
||||||
fprintf(stderr, "\n");
|
fprintf(stderr, "\n");
|
||||||
|
|
Loading…
Reference in a new issue