Messages in this thread | | | Date | Thu, 27 Jan 2011 14:53:56 -0500 (EST) | From | Alan Stern <> | Subject | Re: [PATCH 1/2] USB: ffs-test: fix header path |
| |
On Thu, 27 Jan 2011, Davidlohr Bueso wrote:
> From: Davidlohr Bueso <dave@gnu.org> > > 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â
> @@ -450,7 +450,7 @@ invalid: > len, expected, *p); > for (p = buf, len = 0; len < nbytes; ++p, ++len) { > if (0 == (len % 32)) > - fprintf(stderr, "%4d:", len); > + fprintf(stderr, "%4ld:", len);
Since len's type is size_t, shouldn't the format be %4z?
Alan Stern
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |