From 2d3aac1241ac2938f3cc089318d7b26217e247f4 Mon Sep 17 00:00:00 2001 From: Alexander Egorenkov Date: Mon, 13 May 2024 14:28:19 +0200 Subject: [PATCH] dumpconf: fix coding style of CheckDeviceString() Make it conform with the naming style used for every other function in this script. Signed-off-by: Alexander Egorenkov Reviewed-by: Mikhail Zaslonko Signed-off-by: Steffen Eiden --- scripts/dumpconf | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/scripts/dumpconf b/scripts/dumpconf index f1c54714..a77cda82 100755 --- a/scripts/dumpconf +++ b/scripts/dumpconf @@ -50,7 +50,7 @@ check_environment() if [ "$(cat /proc/filesystems|grep sysfs)" = "" ]; then pr_error "no sysfs found" - exit 1 + exit 1 fi SYSFSDIR=$(cat /proc/mounts|awk '$3=="sysfs"{print $2; exit}') @@ -184,7 +184,8 @@ verify_ccw_dump_device() #------------------------------------------------------------------------------ # Helper function to check a device string. #------------------------------------------------------------------------------ -function CheckDeviceString() { +check_device_string() +{ local X X=$( @@ -222,7 +223,7 @@ function CheckDeviceString() { setup_ccw_device() { - DEV="$(CheckDeviceString $DEVICE)" + DEV="$(check_device_string $DEVICE)" if [ "$DEV" != "" ]; then echo $DEV > $1/ccw/device else @@ -234,7 +235,7 @@ setup_ccw_device() setup_eckd_device() { - DEV="$(CheckDeviceString $DEVICE)" + DEV="$(check_device_string $DEVICE)" if [ "$DEV" != "" ]; then echo $DEV > $1/eckd/device else @@ -256,7 +257,7 @@ setup_eckd_device() setup_fcp_device() { - DEV="$(CheckDeviceString $DEVICE)" + DEV="$(check_device_string $DEVICE)" if [ "$DEV" != "" ]; then echo $DEV > $1/fcp/device else