From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2F091138359 for ; Fri, 21 Aug 2020 18:48:04 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 53F2CE07FE; Fri, 21 Aug 2020 18:48:03 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 3629AE07FE for ; Fri, 21 Aug 2020 18:48:03 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2970D340DBF for ; Fri, 21 Aug 2020 18:48:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A10502CC for ; Fri, 21 Aug 2020 18:48:00 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1598035472.6bc4264df660ff6f639cdd9625f5f0da20418e25.whissi@gentoo> Subject: [gentoo-commits] proj/genkernel:master commit in: defaults/ X-VCS-Repository: proj/genkernel X-VCS-Files: defaults/initrd.scripts X-VCS-Directories: defaults/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 6bc4264df660ff6f639cdd9625f5f0da20418e25 X-VCS-Branch: master Date: Fri, 21 Aug 2020 18:48:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2a430d9f-12e7-476d-9acb-1af207bebdb7 X-Archives-Hash: 356cd57fdc4534f314912f4aaea43189 commit: 6bc4264df660ff6f639cdd9625f5f0da20418e25 Author: Thomas Deutschmann gentoo org> AuthorDate: Fri Aug 21 18:44:32 2020 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Fri Aug 21 18:44:32 2020 +0000 URL: https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=6bc4264d defaults/initrd.scripts: log_msg(): Log milliseconds This will allow us to see more in detail where initramfs spent time. Bug: https://bugs.gentoo.org/738378 Signed-off-by: Thomas Deutschmann gentoo.org> defaults/initrd.scripts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/defaults/initrd.scripts b/defaults/initrd.scripts index f34e5a3..fd87623 100644 --- a/defaults/initrd.scripts +++ b/defaults/initrd.scripts @@ -1084,10 +1084,10 @@ log_msg() { # codes and substitution can't be greedy. # Because Busybox's sed cannot deal with control characters, we # have to get rid of all non-printable characters like "^[" first... - LANG=C echo "${log_prefix}${msg}" | sed \ + LANG=C echo "] ${log_prefix}${msg}" | sed \ -e "s,[^[:print:]],,g" \ -e 's,\(\\033\)\?\[[0-9;]\+m,,g' \ - | ts '[%Y-%m-%d %H:%M:%S]' >> "${GK_INIT_LOG}" + | ts '[ %Y-%m-%d %H:%M:%.S' >> "${GK_INIT_LOG}" } # msg functions arguments