dmraid/fix-segmentation-fault-when-using-dmraid-h-on-aarch64.patch

26 lines
888 B
Diff
Raw Normal View History

From 9dce5cd1afb90332b11b3185af9a3bf7c91ee64a Mon Sep 17 00:00:00 2001
From: shao_xuehua <shao_xuehua@hoperun.com>
Date: Thu, 21 Sep 2023 11:27:15 +0800
Subject: [PATCH] fix segmentation fault when using "dmraid -h" on aarch64
---
tools/commands.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tools/commands.c b/tools/commands.c
index a3c77d2..b746935 100644
--- a/tools/commands.c
+++ b/tools/commands.c
@@ -266,7 +266,7 @@ help(struct lib_context *lc, int arg)
"\t[--size [0-9]...[kKgG][bB]]\n"
"\t[--str[i[de]] [0-9]...[kK][bB]]\n"
"\t{--disk[s] \"device-path[, device-path...\"}\n", c);
- log_print(lc, "%s\t{-x|--remove RAID-set} \n");
+ log_print(lc, "%s\t{-x|--remove RAID-set} \n", c);
log_print(lc, "%s\t{-R|--rebuild} RAID-set [drive_name]\n"
"\t[-u|--update_defer]", c);
log_print(lc, "%s\t[{-f|--format FORMAT}]\n"
--
2.20.1