From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7F39FC004D4 for ; Wed, 18 Jan 2023 05:16:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229685AbjARFQL (ORCPT ); Wed, 18 Jan 2023 00:16:11 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37008 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229475AbjARFQH (ORCPT ); Wed, 18 Jan 2023 00:16:07 -0500 Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 973B94FCC4; Tue, 17 Jan 2023 21:16:05 -0800 (PST) Date: Wed, 18 Jan 2023 05:15:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=weissschuh.net; s=mail; t=1674018963; bh=+iveqw/qm0yQjEUnNI9i+RiUzh20sBeTW2alB5X1ZB4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=S9IcC1X0aouk3ixY2js450i4XROwis/FmJH/wbHHsiKQb6y1Od1adQA2i3sMv3caV glOTjW0N7p7Pe2ktwDX2s2bxBJYQLSBRBkfe/FomBC38VhqetDqSNG6CY1OAozfZED 4xwnnKTWHuID98FkFIOHFzbzrKzqAUGTAghyHfxk= From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Yonghong Song Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Mykola Lysenko , Shuah Khan , Masahiro Yamada , bpf@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kbuild@vger.kernel.org Subject: Re: [PATCH 1/3] selftests/bpf: align kbuild messages to standard Message-ID: <20230118051555.2ud7mrt4tk6q6322@t-8ch.de> References: <20230118-kbuild-alignment-v1-0-eb5e9fd55c92@weissschuh.net> <20230118-kbuild-alignment-v1-1-eb5e9fd55c92@weissschuh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jan 17, 2023 at 09:02:20PM -0800, Yonghong Song wrote: > > > On 1/17/23 7:52 PM, Thomas Weißschuh wrote: > > The common layout for kbuild messages is as follows: > > > > - 2 spaces > > - 7 or more characters for the action > > - 1 space > > - name of the file being built/generated > > > > The custom message formatting included an additional space in the action > > part, which leads to misalignments with the rest of kbuild. > > Could you give an example to show the output before/after the patch, and > how it leads to mis-alignment and why it is a problem? Before: LD .../linux/tools/bpf/resolve_btfids/resolve_btfids-in.o LINK resolve_btfids CHK kernel/kheaders_data.tar.xz After: LD .../linux/tools/bpf/resolve_btfids/resolve_btfids-in.o LINK resolve_btfids CHK kernel/kheaders_data.tar.xz The line starting with "LINK" has the filename "resolve_btfids" one space character more to the right than the other lines. It's slightly confusing when scanning the build logs. > > Signed-off-by: Thomas Weißschuh > > --- > > tools/testing/selftests/bpf/Makefile | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/tools/testing/selftests/bpf/Makefile b/tools/testing/selftests/bpf/Makefile > > index c22c43bbee19..5190c19295d4 100644 > > --- a/tools/testing/selftests/bpf/Makefile > > +++ b/tools/testing/selftests/bpf/Makefile > > @@ -98,7 +98,7 @@ Q = > > msg = > > else > > Q = @ > > -msg = @printf ' %-8s%s %s%s\n' "$(1)" "$(if $(2), [$(2)])" "$(notdir $(3))" "$(if $(4), $(4))"; > > +msg = @printf ' %-7s%s %s%s\n' "$(1)" "$(if $(2), [$(2)])" "$(notdir $(3))" "$(if $(4), $(4))"; > > MAKEFLAGS += --no-print-directory > > submake_extras := feature_display=0 > > endif > >