From nobody Mon Apr 6 18:55:16 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 393CC37CD5E; Wed, 18 Mar 2026 08:25:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773822322; cv=none; b=YnkYQ7uWB+0HQu6g3V0j9nrEZJUIJCk8toEMflacwTI3vQaApinfXoIpxJTyw+wrfyRlqFYEFsxFzl7yoZUOn1uEWwyJhDv5F6BGVkbWG582K76m0nE4AEKUDqUYLyl3szmy0AK2rlZpAoXz7ewwf3Iik2TW0s7nZr3pBCEny9I= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773822322; c=relaxed/simple; bh=U9GTYxFwBy76Bv6Mmgd7wG2cx/uo6PWo1Lx2ucJ7vTk=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Au6jSVIHrY+SxypYFnjj10J34sxtmdoQTKzGXgaWQzV/H6RLFpyvrR8FT9eaTK3Fuli8p6vPFEf7P76lEPx73nscZ0Y1ei6Z821s63B15a5qpzR2Ikldox3qwC8uXD1zlfe+kLChGX+13qIxavgSu9A1ClREI8m6Frzwz+x8dCE= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=ORL/3ZLg; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=TwjCcc4Y; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="ORL/3ZLg"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="TwjCcc4Y" Date: Wed, 18 Mar 2026 08:25:12 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1773822314; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oIXy1dIfzOvIZb9d055FOifY35PCkDAQqWHWx4jnga4=; b=ORL/3ZLgoAJitjjcVJlhXl+yazGCUXfQE8b9fO5VOTfa0+9gNVgzi9EQvl9v8vfzr3fwz0 lOEAAk1kzMNUikY2eTS8mMbFDXnMvtKY7Z+649hV7fQFYi1y1W+Qg+8r+9shazdmvttZ3y miZP/jlU13K9BK0a3f6o7XkaofmsNYSxlcOYC1+cMt+utoD8qljvZBTBdCakzvXJZjOpRq sIZl55pFTaGiq+uk47Ms2Q8EUHr5506bccbJmZgcrfitdq2PWjT5aMelNbclgOw+pS1upI 9m5EWQs8Lg0b3GKCqeWI5R9aoyBqbnaHFX2/WO+1cBQmjLbIX9h1T+MonL7CIg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1773822314; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=oIXy1dIfzOvIZb9d055FOifY35PCkDAQqWHWx4jnga4=; b=TwjCcc4YJIwoBHlOB6H5uM56NqF0iy83xRY4lbu6QCixeDKP5hxt/M9NMR7s45U2o4Bo6C ubWE7bFgXJRFjkAg== From: "tip-bot2 for Joe Lawrence" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: objtool/core] livepatch/klp-build: add terminal color output Cc: Song Liu , Joe Lawrence , Josh Poimboeuf , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260310203751.1479229-12-joe.lawrence@redhat.com> References: <20260310203751.1479229-12-joe.lawrence@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <177382231289.1647592.3554390886515160889.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the objtool/core branch of tip: Commit-ID: 1fbc9b855f08f89ccf933324a5cbd8c53ee94d87 Gitweb: https://git.kernel.org/tip/1fbc9b855f08f89ccf933324a5cbd8c53= ee94d87 Author: Joe Lawrence AuthorDate: Tue, 10 Mar 2026 16:37:50 -04:00 Committer: Josh Poimboeuf CommitterDate: Mon, 16 Mar 2026 12:52:53 -07:00 livepatch/klp-build: add terminal color output Improve the readability of klp-build output by implementing a basic color scheme. When the standard output and error are connected to a terminal, highlight status messages in bold and warning/error prefixes in yellow/red. Acked-by: Song Liu Signed-off-by: Joe Lawrence Link: https://patch.msgid.link/20260310203751.1479229-12-joe.lawrence@redha= t.com Signed-off-by: Josh Poimboeuf --- scripts/livepatch/klp-build | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/livepatch/klp-build b/scripts/livepatch/klp-build index dc0a23a..d628e2c 100755 --- a/scripts/livepatch/klp-build +++ b/scripts/livepatch/klp-build @@ -52,6 +52,15 @@ PATCH_TMP_DIR=3D"$TMP_DIR/tmp" =20 KLP_DIFF_LOG=3D"$DIFF_DIR/diff.log" =20 +# Terminal output colors +read -r COLOR_RESET COLOR_BOLD COLOR_ERROR COLOR_WARN <<< "" +if [[ -t 1 && -t 2 ]]; then + COLOR_RESET=3D"\033[0m" + COLOR_BOLD=3D"\033[1m" + COLOR_ERROR=3D"\033[0;31m" + COLOR_WARN=3D"\033[0;33m" +fi + grep0() { # shellcheck disable=3DSC2317 command grep "$@" || true @@ -65,15 +74,15 @@ grep() { } =20 status() { - echo "$*" + echo -e "${COLOR_BOLD}$*${COLOR_RESET}" } =20 warn() { - echo "error: $SCRIPT: $*" >&2 + echo -e "${COLOR_WARN}warning${COLOR_RESET}: $SCRIPT: $*" >&2 } =20 die() { - warn "$@" + echo -e "${COLOR_ERROR}error${COLOR_RESET}: $SCRIPT: $*" >&2 exit 1 } =20 @@ -110,7 +119,7 @@ cleanup() { } =20 trap_err() { - warn "line ${BASH_LINENO[0]}: '$BASH_COMMAND'" + die "line ${BASH_LINENO[0]}: '$BASH_COMMAND'" } =20 trap cleanup EXIT INT TERM HUP