代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/systemd 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From b0d294099790e75b0d8a1c90847895f5c7925354 Mon Sep 17 00:00:00 2001
From: Antonio Alvarez Feijoo <[email protected]>
Date: Tue, 9 Jan 2024 09:05:50 +0100
Subject: [PATCH] analyze: fix -q option
Follow-up to 52117f5af831a816c47ceebb83c8244ee93b72fe
(cherry picked from commit 7c0e0bbb6b13d70500da79ce0270ed6da09327a0)
---
man/systemd-analyze.xml | 1 +
shell-completion/bash/systemd-analyze | 2 +-
src/analyze/analyze.c | 2 +-
3 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/man/systemd-analyze.xml b/man/systemd-analyze.xml
index 2f2873452ac..63232ad1f02 100644
--- a/man/systemd-analyze.xml
+++ b/man/systemd-analyze.xml
@@ -1481,6 +1481,7 @@ NR NAME SHA256
<xi:include href="user-system-options.xml" xpointer="machine" />
<varlistentry>
+ <term><option>-q</option></term>
<term><option>--quiet</option></term>
<listitem><para>Suppress hints and other non-essential output.</para>
diff --git a/shell-completion/bash/systemd-analyze b/shell-completion/bash/systemd-analyze
index 8ecf9935715..1fde67218b9 100644
--- a/shell-completion/bash/systemd-analyze
+++ b/shell-completion/bash/systemd-analyze
@@ -57,7 +57,7 @@ _systemd_analyze() {
local -A OPTS=(
[STANDALONE]='-h --help --version --system --user --global --order --require --no-pager
- --man=no --generators=yes --quiet'
+ --man=no --generators=yes -q --quiet'
[ARG]='-H --host -M --machine --fuzz --from-pattern --to-pattern --root'
)
diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c
index d2be144f4f4..ba95bbaba59 100644
--- a/src/analyze/analyze.c
+++ b/src/analyze/analyze.c
@@ -360,7 +360,7 @@ static int parse_argv(int argc, char *argv[]) {
assert(argc >= 0);
assert(argv);
- while ((c = getopt_long(argc, argv, "hH:M:U:", options, NULL)) >= 0)
+ while ((c = getopt_long(argc, argv, "hH:M:U:q", options, NULL)) >= 0)
switch (c) {
case 'h':
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。