aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStéphane Lesimple <speed47_github@speed47.net>2018-01-23 20:25:24 +0100
committerStéphane Lesimple <speed47_github@speed47.net>2018-01-24 09:04:25 +0100
commit3b0ec998b1ae5fa25a32573ec647fabade96cdb4 (patch)
tree384b1e85d71b0740a61459173a6e37f703a58bd8
parentd55bafde19a42d8d11ec803128b5b74f1ccc34b8 (diff)
downloadspectre-meltdown-checker-3b0ec998b1ae5fa25a32573ec647fabade96cdb4.tar.lz
spectre-meltdown-checker-3b0ec998b1ae5fa25a32573ec647fabade96cdb4.tar.xz
spectre-meltdown-checker-3b0ec998b1ae5fa25a32573ec647fabade96cdb4.zip
fix(cosmetic): tiny msg fixes
-rwxr-xr-xspectre-meltdown-checker.sh9
1 files changed, 5 insertions, 4 deletions
diff --git a/spectre-meltdown-checker.sh b/spectre-meltdown-checker.sh
index 92917b0..c3f9202 100755
--- a/spectre-meltdown-checker.sh
+++ b/spectre-meltdown-checker.sh
@@ -198,7 +198,7 @@ is_cpu_vulnerable()
variant2=''
variant3=''
# we also set a friendly name for the CPU to be used in the script if needed
- cpu_friendly_name=$(grep '^model name' /proc/cpuinfo | cut -d: -f2- | head -1)
+ cpu_friendly_name=$(grep '^model name' /proc/cpuinfo | cut -d: -f2- | head -1 | sed -e 's/^ *//')
if grep -q GenuineIntel /proc/cpuinfo; then
# Intel
@@ -661,7 +661,8 @@ if [ "$opt_live" = 1 ]; then
_warn "To run it as root, you can try the following command: sudo $0"
_warn
fi
- _info "Checking for vulnerabilities against running kernel \033[35m"$(uname -s) $(uname -r) $(uname -v) $(uname -m)"\033[0m"
+ _info "Checking for vulnerabilities on current system"
+ _info "Kernel is \033[35m"$(uname -s) $(uname -r) $(uname -v) $(uname -m)"\033[0m"
# call is_cpu_vulnerable to fill the cpu_friendly_name var
is_cpu_vulnerable 1
_info "CPU is \033[35m$cpu_friendly_name\033[0m"
@@ -1319,13 +1320,13 @@ check_variant3()
# https://groups.google.com/forum/m/#!topic/mechanical-sympathy/L9mHTbeQLNU
if [ "$opt_verbose" -ge 2 ]; then
_info "* Performance impact if PTI is enabled"
- _info_nol "* CPU supports PCID: "
+ _info_nol " * CPU supports PCID: "
if grep ^flags /proc/cpuinfo | grep -qw pcid; then
pstatus green YES 'performance degradation with PTI will be limited'
else
pstatus blue NO 'no security impact but performance will be degraded with PTI'
fi
- _info_nol "* CPU supports INVPCID: "
+ _info_nol " * CPU supports INVPCID: "
if grep ^flags /proc/cpuinfo | grep -qw invpcid; then
pstatus green YES 'performance degradation with PTI will be limited'
else