From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.2 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (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) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 6E6F31F4B4 for ; Mon, 12 Oct 2020 11:55:01 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 463E0388A409; Mon, 12 Oct 2020 11:55:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 463E0388A409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1602503700; bh=Mc+eAKUBqubqaQgX7wbEU4Vtq9XVwXOg5bilr+D0n0I=; h=To:Subject:References:Date:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=SheYK4q//+cjBwmtrjPuTeioWzCjAQHLj4jl0QwAMOJq0+PwDNFcQfSjF7LI5TriI gBpTEqVICLV0HgRdw3Jkzd/hZbEAjOaY1Pv3Ai41k2MpuoKb3Oj7PtdO7FlpCwDV5n wPRg8fLWkyZKmynuTFsjv/Ip7Gi0wcV67GAgJE7o= Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by sourceware.org (Postfix) with ESMTP id 6865F386F44D for ; Mon, 12 Oct 2020 11:54:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6865F386F44D Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-212-cH0b32bJMUaQ9oFnhJITsw-1; Mon, 12 Oct 2020 07:54:56 -0400 X-MC-Unique: cH0b32bJMUaQ9oFnhJITsw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 50CB810066FB; Mon, 12 Oct 2020 11:54:55 +0000 (UTC) Received: from oldenburg2.str.redhat.com (ovpn-112-137.ams2.redhat.com [10.36.112.137]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 8942B10013C1; Mon, 12 Oct 2020 11:54:54 +0000 (UTC) To: Adhemerval Zanella via Libc-alpha Subject: Re: [PATCH 16/28] elf: Add glibc-hwcaps support for LD_LIBRARY_PATH References: <47cb6998ed91f70f122de115b2e03ea5e82e5884.1601569371.git.fweimer@redhat.com> <7bae9b81-f656-976f-7b2a-6c0330243936@linaro.org> Date: Mon, 12 Oct 2020 13:54:52 +0200 In-Reply-To: <7bae9b81-f656-976f-7b2a-6c0330243936@linaro.org> (Adhemerval Zanella via Libc-alpha's message of "Fri, 9 Oct 2020 10:19:40 -0300") Message-ID: <87o8l71wxf.fsf@oldenburg2.str.redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Florian Weimer via Libc-alpha Reply-To: Florian Weimer Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" * Adhemerval Zanella via Libc-alpha: >> + /* glibc-hwcaps subdirectories. These are exempted from the power >> + set construction below below. */ >> + int32_t hwcaps_subdirs_active = _dl_hwcaps_subdirs_active (); >> + struct count_hwcaps hwcaps_counts = { 0, }; > > Are you trying to outline the first element must be 0 initilized here > with the comma? Empty initializers are non-standard. The , suggests that there is more than one initializer. I can drop the 0, if you prefer. >> +/* Print the HWCAP name itself, indented. */ >> +static void >> +print_hwcaps_subdirectories_name (const struct dl_hwcaps_split *split) >> +{ >> + _dl_write (STDOUT_FILENO, " ", 2); > > Maybe 'strlen (" ")" here? I usually see to use constants related to > string size erro-prone. I prefer it this way here because it documents that there are exactly two spaces (not one, not three). I'm going to send a new patch later today, hopefully addressing Paul Clarke's comment about magic numbers. There should also be a new test. Thanks, Florian -- Red Hat GmbH, https://de.redhat.com/ , Registered seat: Grasbrunn, Commercial register: Amtsgericht Muenchen, HRB 153243, Managing Directors: Charles Cachera, Brian Klemm, Laurie Krebs, Michael O'Neill