The warning messages should not be included in the generated files. Redirecting the warning for an unknown architecture to stderr.
Signed-off-by: Lichen Liu lichliu@redhat.com --- gen-kdump-conf.sh | 2 +- gen-kdump-sysconfig.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gen-kdump-conf.sh b/gen-kdump-conf.sh index a9f124f..4abcd39 100755 --- a/gen-kdump-conf.sh +++ b/gen-kdump-conf.sh @@ -224,7 +224,7 @@ s390x) x86_64) ;;
*) - echo "Warning: Unknown architecture '$1', using default kdump.conf template." + echo "Warning: Unknown architecture '$1', using default kdump.conf template." >&2 ;; esac
diff --git a/gen-kdump-sysconfig.sh b/gen-kdump-sysconfig.sh index 5a16e92..4a28350 100755 --- a/gen-kdump-sysconfig.sh +++ b/gen-kdump-sysconfig.sh @@ -107,7 +107,7 @@ x86_64) "irqpoll nr_cpus=1 reset_devices cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 acpi_no_memhotplug transparent_hugepage=never nokaslr hest_disable novmcoredd cma=0 hugetlb_cma=0" ;; *) - echo "Warning: Unknown architecture '$1', using default sysconfig template." + echo "Warning: Unknown architecture '$1', using default sysconfig template." >&2 ;; esac
On Mon, Jun 05, 2023 at 05:35:53PM +0800, Lichen Liu wrote:
The warning messages should not be included in the generated files. Redirecting the warning for an unknown architecture to stderr.
Signed-off-by: Lichen Liu lichliu@redhat.com
Patch merged, thanks!
Reviewed-by: Coiby Xu coxu@redhat.com
gen-kdump-conf.sh | 2 +- gen-kdump-sysconfig.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/gen-kdump-conf.sh b/gen-kdump-conf.sh index a9f124f..4abcd39 100755 --- a/gen-kdump-conf.sh +++ b/gen-kdump-conf.sh @@ -224,7 +224,7 @@ s390x) x86_64) ;;
*)
- echo "Warning: Unknown architecture '$1', using default kdump.conf template."
- echo "Warning: Unknown architecture '$1', using default kdump.conf template." >&2 ;;
esac
diff --git a/gen-kdump-sysconfig.sh b/gen-kdump-sysconfig.sh index 5a16e92..4a28350 100755 --- a/gen-kdump-sysconfig.sh +++ b/gen-kdump-sysconfig.sh @@ -107,7 +107,7 @@ x86_64) "irqpoll nr_cpus=1 reset_devices cgroup_disable=memory mce=off numa=off udev.children-max=2 panic=10 acpi_no_memhotplug transparent_hugepage=never nokaslr hest_disable novmcoredd cma=0 hugetlb_cma=0" ;; *)
- echo "Warning: Unknown architecture '$1', using default sysconfig template."
- echo "Warning: Unknown architecture '$1', using default sysconfig template." >&2 ;;
esac
-- 2.40.1