target: fix match_token option in target_core_configfs.c
authortangwenji <tang.wenji@zte.com.cn>
Tue, 22 Aug 2017 12:29:50 +0000 (20:29 +0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Sat, 4 Nov 2017 21:45:23 +0000 (14:45 -0700)
commita2db857bf9ec62e91a6120a16436251be8e1c5ca
treede1075b5ada8cc7110ac2bc3429b024c3d5471ec
parent79dd6f2fd170e19f979d31cd1ebc9eea6de1a75f
target: fix match_token option in target_core_configfs.c

The match_token function does not recognize the option 'l',
so that both the mapped_lun and target_lun parameters
can not be resolved correctly.

And parsed u64-type parameters should use match_u64().

(Use %u instead of %s for Opt_mapped_lun + Opt_target_lun - nab)

Signed-off-by: tangwenji <tang.wenji@zte.com.cn>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_configfs.c