From nobody Wed May 22 20:24:20 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Vl2pD1kPrz5KfZf; Wed, 22 May 2024 20:24:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Vl2pD1Bs3z45ZR; Wed, 22 May 2024 20:24:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716409460; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TV5IHBrVlOBHAObZrKKiQ1fO/+wI2cxzxpmFJpmxlw4=; b=GihOAdzmZAwxf2sPKLp1PmzS9Uo4NcGOVzDQXPcR9+rju3AWZ5uPgjZJip3iU787qztMRh deAj9wuyKASA6F1wt7RiRgVzHpZ3WSga8KWp5aw5XmRQXn+MKf95CGSUIAyiRv9yo1Z1i1 3l8BAxNk7NwXIFyVGX01AlQUfdsBwtQHzTh8pCX+/r7ZXspUxPCmQQfphDWhAKqtFTn1bH YFquI7zO5ZxLvR3gXjp5N2yIY7BhuSQyMLuHcjGudK9FzwL0lh8cTLIMI2E/izHWG/ZJWV pLR0wttj6qpd9Kde0VaZadkgRzTf1OCEAqE/TpJOjFHecuOImr2FecGj79ZeAA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1716409460; a=rsa-sha256; cv=none; b=fuxuF5oFMUTEF905IfqloalT+zD2c4hv2XEp3NSulZGrWgRhML/OwVIsOaR/AM27dX+Tj5 m222wxU3jT4QsKg+H3Jz4/bPHyuPOTjkUtZ+fjcoBT4wSZx+CB+BqO592AZtAtacMKRNTm R9fiGP2SJ5A0+MrjFRkUk2ut5BNmFa/LLXR8YvUsx/kamiELlJIeKzAfbk/2lC3SGl9gx/ SLMfyctblHaQhbLRiIZJdwDQoQpdwRMUI1tKWo7Xs6FfhBkCOy9na7YRtGnzdl485JZPPH ibTyq2+nzwBuWzxNvBtQmIeHxH5FziM56ZfsxT7NOu06o5GYKF2FZztn6OV7vg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1716409460; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=TV5IHBrVlOBHAObZrKKiQ1fO/+wI2cxzxpmFJpmxlw4=; b=qtYZt0WerYRfAo55weJcOhRj8LCyp5wW4DrDDeT5mNJZzeJF/tRqzGQg1zuV4sLNEMlUAW sl9WTc3ANAb2Jp9etagvgxsDc1bzxSTXBHfnIEOp2X+RfJ7G/4y3ALAY7aXOvU7u9PBjam VpcjWAFxZgHBAwgcy5RcS8xy2s8tltzjHkPJE67sT1vNdIKI4ZwBsATxjA3/s2tnxa2iwm rBa/yqH5TwIV/yNEqHWzsUvV1kUizF1S4nVFNvadramyHCS2sew5rpgMN4jSUJpln924Zf DiVG1Qywby13YyBv5e5guOQOTNfCbe9aY/eNdbzdzdn58KSLcIgcjpwD9v3O2A== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Vl2pD0p57zKlr; Wed, 22 May 2024 20:24:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 44MKOKdu013809; Wed, 22 May 2024 20:24:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 44MKOKVY013806; Wed, 22 May 2024 20:24:20 GMT (envelope-from git) Date: Wed, 22 May 2024 20:24:20 GMT Message-Id: <202405222024.44MKOKVY013806@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: 6841c2677c5b - main - zzz: Fix output formatting when suspend state not supported List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6841c2677c5b5e85fd727bfb934efdafd4ccc2bc Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=6841c2677c5b5e85fd727bfb934efdafd4ccc2bc commit 6841c2677c5b5e85fd727bfb934efdafd4ccc2bc Author: Oleksandr Kryvulia AuthorDate: 2024-05-22 20:21:18 +0000 Commit: Warner Losh 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