From 3d2642e63937ebeeb1c0bd96df7128b463fb8fd9 Mon Sep 17 00:00:00 2001 From: Chris Friesen Date: Wed, 13 Mar 2019 09:42:45 -0600 Subject: [PATCH] Formatting cleanups in libvirt hook bash script Just doing some whitespace and variable expansion cleanups in the bash script that were highlighted while doing a previous review. Change-Id: I6a5a1e80057fbf6cb292fc0ed5415a26fb780958 Signed-off-by: Chris Friesen --- virt/libvirt/libvirt/hooks/qemu | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/virt/libvirt/libvirt/hooks/qemu b/virt/libvirt/libvirt/hooks/qemu index a1da758df..9bf67d436 100755 --- a/virt/libvirt/libvirt/hooks/qemu +++ b/virt/libvirt/libvirt/hooks/qemu @@ -19,30 +19,30 @@ GUEST_NAME=$1 shift OPERATION=$* -logger -p info -t $0 "hook qemu file guest $GUEST_NAME with operation $OPERATION" +logger -p info -t ${0} "hook qemu file guest ${GUEST_NAME} with operation ${OPERATION}" # CPU Low latency setup: -# +# # A cpu is set to low latency when: # 1) host is set to subfunction=lowlatency in platform.conf and # 2) domain has dedicated pinning # # example of section when domain has dedicated pinning: -# -# -# -# -# +# +# +# +# +# # # # example of section when domain has shared pinning: -# -# 4096 -# -# -# -# -# +# +# 4096 +# +# +# +# +# # if [ "${OPERATION}" == "prepare begin -" ] || [ "${OPERATION}" == "stopped end -" ]; then