Skip to content
Commit 7ae69d70 authored by Shaoqin Huang's avatar Shaoqin Huang Committed by Sean Christopherson
Browse files

selftests: KVM: Replace optarg with arg in guest_modes_cmdline



The parameter arg in guest_modes_cmdline not being used now, and the
optarg should be replaced with arg in guest_modes_cmdline.

And this is the chance to change strtoul() to atoi_non_negative(), since
guest mode ID will never be negative.

Signed-off-by: default avatarShaoqin Huang <shahuang@redhat.com>
Fixes: e42ac777 ("KVM: selftests: Factor out guest mode code")
Reviewed-by: default avatarAndrew Jones <andrew.jones@linux.dev>
Reviewed-by: default avatarVipin Sharma <vipinsh@google.com>
Link: https://lore.kernel.org/r/20230202025716.216323-1-shahuang@redhat.com


Signed-off-by: default avatarSean Christopherson <seanjc@google.com>
parent 45f67955
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment