Re: drivers/usb/gadget/f_fs.c:1148:6: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘long unsigned int’ [-Wformat]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



wfg@xxxxxxxxxxxxxxx writes:

> FYI: there are new compile warnings show up in
>
> tree:   git://git.kernel.org/pub/scm/linux/kernel/git/ebiederm/user-namespace.git user-namespace-v41
> head:   c4d23eefc4fdc44ac1b427f3b7c251281a90b6ee
> commit: e90ae5c29f2b5caa144a47e12e390f26d739d492 [37/97] userns: Convert usb functionfs to use kuid/kgid where appropriate
> config: i386-allmodconfig (attached as .config)
>
> All related error/warning messages are:
>
> drivers/usb/gadget/f_fs.c: In function ‘ffs_fs_parse_opts’:
> drivers/usb/gadget/f_fs.c:1148:6: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘long unsigned int’ [-Wformat]
> drivers/usb/gadget/f_fs.c:1148:6: warning: format ‘%lu’ expects a matching ‘long unsigned int’ argument [-Wformat]
> drivers/usb/gadget/f_fs.c:1155:6: warning: format ‘%s’ expects argument of type ‘char *’, but argument 2 has type ‘long unsigned int’ [-Wformat]
> drivers/usb/gadget/f_fs.c:1155:6: warning: format ‘%lu’ expects a
> matching ‘long unsigned int’ argument [-Wformat]

Ugh.   I goofed when I added error handling in there.

Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux