git: 6841c2677c5b - main - zzz: Fix output formatting when suspend state not supported
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 22 May 2024 20:24:20 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=6841c2677c5b5e85fd727bfb934efdafd4ccc2bc
commit 6841c2677c5b5e85fd727bfb934efdafd4ccc2bc
Author: Oleksandr Kryvulia <shuriku@shurik.kiev.ua>
AuthorDate: 2024-05-22 20:21:18 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-05-22 20:21:18 +0000
zzz: Fix output formatting when suspend state not supported
Reviewed by: imp (who also simplified things a little)
Differenetial Revision: https://reviews.freebsd.org/D45299
---
usr.sbin/zzz/zzz.sh | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/usr.sbin/zzz/zzz.sh b/usr.sbin/zzz/zzz.sh
index 0e0ceebe70b9..dde36e7984c6 100644
--- a/usr.sbin/zzz/zzz.sh
+++ b/usr.sbin/zzz/zzz.sh
@@ -27,9 +27,8 @@ if sysctl $ACPI_SUSPEND_STATE >/dev/null 2>&1; then
# execute ACPI style suspend command
exec acpiconf -s "$SUSPEND_STATE"
else
- echo -n "Requested suspend state $SUSPEND_STATE "
- echo -n "is not supported."
- echo "Supported states: $SUPPORTED_STATES"
+ echo "Requested suspend state $SUSPEND_STATE is not supported."
+ echo "Supported states: $SUPPORTED_STATES"
fi
# Check for APM support
elif sysctl $APM_SUSPEND_DELAY >/dev/null 2>&1; then