mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-06-16 02:15:47 +00:00
kvm tools: support unsigned int options
Add support for unsigned int command-line options by implementing the OPT_UINTEGER macro. Acked-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Robin Murphy <robin.murphy@arm.com> Signed-off-by: Will Deacon <will.deacon@arm.com> Signed-off-by: Pekka Enberg <penberg@kernel.org>
This commit is contained in:
committed by
Will Deacon
parent
d06bc640e5
commit
dfb8fd674f
@@ -109,6 +109,15 @@ struct option {
|
||||
.help = (h) \
|
||||
}
|
||||
|
||||
#define OPT_UINTEGER(s, l, v, h) \
|
||||
{ \
|
||||
.type = OPTION_UINTEGER, \
|
||||
.short_name = (s), \
|
||||
.long_name = (l), \
|
||||
.value = check_vtype(v, unsigned int *), \
|
||||
.help = (h) \
|
||||
}
|
||||
|
||||
#define OPT_U64(s, l, v, h) \
|
||||
{ \
|
||||
.type = OPTION_U64, \
|
||||
|
||||
Reference in New Issue
Block a user