Skip to content

Commit

Permalink
USB: ffs-test: fix header path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Davidlohr Bueso authored and Greg Kroah-Hartman committed Mar 1, 2011
1 parent 6960f40 commit d105e74
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/usb/ffs-test.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <sys/types.h>
#include <unistd.h>

#include <linux/usb/functionfs.h>
#include "../../include/linux/usb/functionfs.h"


/******************** Little Endian Handling ********************************/
Expand Down Expand Up @@ -450,7 +450,7 @@ empty_out_buf(struct thread *ignore, const void *buf, size_t nbytes)
len, expected, *p);
for (p = buf, len = 0; len < nbytes; ++p, ++len) {
if (0 == (len % 32))
fprintf(stderr, "%4d:", len);
fprintf(stderr, "%4zd:", len);
fprintf(stderr, " %02x", *p);
if (31 == (len % 32))
fprintf(stderr, "\n");
Expand Down

0 comments on commit d105e74

Please sign in to comment.