diff options
author | Christoph Jaeger <christophjaeger@linux.com> | 2013-08-20 06:03:18 (GMT) |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2013-08-20 06:07:28 (GMT) |
commit | 79ac6834c255d9e3832209f3738d6bff7b87c743 (patch) | |
tree | 8dbd5a12aa780a450f67533e3f4ec75a83ac7bfe /kernel/range.c | |
parent | ad81f0545ef01ea651886dddac4bef6cec930092 (diff) | |
download | linux-fsl-qoriq-79ac6834c255d9e3832209f3738d6bff7b87c743.tar.xz |
module: fix sprintf format specifier in param_get_byte()
In param_get_byte(), to which the macro STANDARD_PARAM_DEF(byte, ...) expands,
"%c" is used to print an unsigned char. So it gets printed as a character what
is not intended here. Use "%hhu" instead.
[Rusty: note drivers which would be effected:
drivers/net/wireless/cw1200/main.c
drivers/ntb/ntb_transport.c:68
drivers/scsi/lpfc/lpfc_attr.c
drivers/usb/atm/speedtch.c
drivers/usb/gadget/g_ffs.c
]
Acked-by: Jon Mason <jon.mason@intel.com> (for ntb)
Acked-by: Michal Nazarewicz <mina86@mina86.com> (for g_ffs.c)
Signed-off-by: Christoph Jaeger <christophjaeger@linux.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'kernel/range.c')
0 files changed, 0 insertions, 0 deletions