Home
last modified time | relevance | path

Searched hist:"90 d66978" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/scsi/libfc/
H A Dfc_lport.c90d66978 Thu Apr 15 17:08:13 CDT 2021 Bart Van Assche <bvanassche@acm.org> scsi: libfc: Fix a format specifier

Since the 'mfs' member has been declared as 'u32' in include/scsi/libfc.h,
use the %u format specifier instead of %hu. This patch fixes the following
clang compiler warning:

warning: format specifies type
'unsigned short' but the argument has type 'u32' (aka 'unsigned int')
[-Wformat]
"lport->mfs:%hu\n", mfs, lport->mfs);
~~~ ^~~~~~~~~~
%u

Link: https://lore.kernel.org/r/20210415220826.29438-8-bvanassche@acm.org
Cc: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>