Skip to content

Commit 38f26cc

Browse files
committed
LoongArch64: fix incorrect code in the main()
The commit c3939d2 contains incorrect code that starts with "+", for example: - !machine_type("S390X") && !machine_type("RISCV64")) + !machine_type("S390X") && !machine_type("RISCV64") && ++ !machine_type("LOONGARCH64")) See the main() in the main.c ... } else if (STREQ(long_options[option_index].name, "kaslr")) { if (!machine_type("X86_64") && !machine_type("ARM64") && !machine_type("X86") && !machine_type("S390X") && !machine_type("RISCV64") && + !machine_type("LOONGARCH64")) Let's remove it from the main(). Link: https://lists.crash-utility.osci.io/archives/list/[email protected]/message/LH3IRUA6ZDVFZFLWKW5EWR3DKE6MY25Z/ Fixes: c3939d2 ("LoongArch64: Add "--kaslr" command line option support") Signed-off-by: Lianbo Jiang <[email protected]>
1 parent 93d7f64 commit 38f26cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ main(int argc, char **argv)
229229
if (!machine_type("X86_64") &&
230230
!machine_type("ARM64") && !machine_type("X86") &&
231231
!machine_type("S390X") && !machine_type("RISCV64") &&
232-
+ !machine_type("LOONGARCH64"))
232+
!machine_type("LOONGARCH64"))
233233
error(INFO, "--kaslr not valid "
234234
"with this machine type.\n");
235235
else if (STREQ(optarg, "auto"))

0 commit comments

Comments
 (0)