Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ac20d8f2 authored by Jordan Crouse's avatar Jordan Crouse
Browse files

usb: gadget: f_fs: Fix compile warnings



Fix the following compiler warning(s) from gcc 6.1.1 with -Werror enabled:

 drivers/usb/gadget/function/f_fs.c:1066:
   format '%d' expects argument of type 'int', but argument 4 has
	type 'ssize_t {aka long int}' [-Werror=format=]
   ffs_log("queued %d bytes on %s", data_len, epfile->name);

 drivers/usb/gadget/function/f_fs.c:1110:
   format '%d' expects argument of type 'int', but argument 4 has
	type 'ssize_t {aka long int}' [-Werror=format=]
   ffs_log("queued %d bytes on %s", data_len, epfile->name);

Fixes: cb9bad16 ("usb: gadget: f_fs: Add support for ipc logging")
Change-Id: Ic0dedbada94266af53ba3824954c7271ec0453b3
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
parent 4a6d5df1
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1063,7 +1063,7 @@ static ssize_t ffs_epfile_io(struct file *file, struct ffs_io_data *io_data)

		spin_unlock_irq(&epfile->ffs->eps_lock);

		ffs_log("queued %d bytes on %s", data_len, epfile->name);
		ffs_log("queued %zd bytes on %s", data_len, epfile->name);

		if (unlikely(wait_for_completion_interruptible(&done))) {
			/*
@@ -1107,7 +1107,7 @@ static ssize_t ffs_epfile_io(struct file *file, struct ffs_io_data *io_data)
			goto error_lock;
		}

		ffs_log("queued %d bytes on %s", data_len, epfile->name);
		ffs_log("queued %zd bytes on %s", data_len, epfile->name);

		ret = -EIOCBQUEUED;
		/*