From patchwork Sat Oct 28 19:55:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 1856600 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=hwx16VM/; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=sourceware.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org; receiver=patchwork.ozlabs.org) Received: from server2.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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4SHr0709zzz1yQK for ; Sun, 29 Oct 2023 06:56:55 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1E79D386193A for ; Sat, 28 Oct 2023 19:56:53 +0000 (GMT) X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-ot1-x330.google.com (mail-ot1-x330.google.com [IPv6:2607:f8b0:4864:20::330]) by sourceware.org (Postfix) with ESMTPS id 1BAA038618FE for ; Sat, 28 Oct 2023 19:56:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1BAA038618FE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1BAA038618FE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::330 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698522980; cv=none; b=AMPEyZCLZjOAWNZsArQhrRCPSXO7fA+S1DbS6hzX6Rmpu5ejQ5xhu+p+jxQqWp2B52xSdM096MnVlbb818pjTyW2gnJ6VH2DDqcxw1DpKkeoSbj+QL0Vu227gUl1q6MjJC6mv2RgH8EnQfpGLcT4Xo6b2G8kh1W+4Sga7jgJXrs= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1698522980; c=relaxed/simple; bh=7IU+K49IxS1kn/ocnc54WSjSZ3Q/mkS/5hQqscvWxMA=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=DitkTvereUPge3aQs8F0t5+8+U1GL50iz5Icu90xnPh0BWhPD+etsuG0j38hHoKRAd42vwPCli7c1tx44k6KinNJV0W1keevdihpMDIVPU2+dd7bebnPo7bRA5RE3Jn3yud03ircdlGyTNo2bmqWIUS6nvLy3oXsXqa6GzNmesA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x330.google.com with SMTP id 46e09a7af769-6ce37683cf6so2158548a34.3 for ; Sat, 28 Oct 2023 12:56:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1698522978; x=1699127778; darn=sourceware.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=xLM6XTFrju2h0P2Jp6D87i92a5MTlqzEcCSkMAXExHA=; b=hwx16VM/fmtrBYX/Kp95GcQsHdMzdKqcjnpAi/NMbuuasaJueHd4GzEjr1dxOQuT44 NKtvaiz7eLmNhwh4JrYyYinCTbywAjjlRzfRPBnysrhmTYvPmpfv0IpjK2YJHbMtc+0H HtXV53pbBfo/1lgGia56+ObyyWPfnubTMEHZ0kDm2BY/jDxZ0iBRvE8ziQ39LeQhiq9+ LXEp4fAuLbqt2ZBc0MzvZSs7ZioscbfeVtociAJUvyxmbntF+vRKQRHhOERX3m2Ziouh sKarKkEAO/X4nwPia/zKONogXXoUwS5DvOUZ68U4sR5inTb0PoKJMCnTU01BSo1ppeIx uLJw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698522978; x=1699127778; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xLM6XTFrju2h0P2Jp6D87i92a5MTlqzEcCSkMAXExHA=; b=rB+QcrlKzPWGewjJo3Y6j3y9q+xRtKDwg/IPjWZIdrBWwmSOmSVq32DdYs5k/a8KEW 9jgMD+SHNOOePk7mrxm2vGhrradLQJjYZtZ5oSDm7Zsx3WUsVMZWxgeEQOGBcwP09HKu wxel2l5QD8q8x2fdul+KwYps4VzZiYySRvC7sZ3nnmAsvruEj7dAtYxU1d8lqH0jSRDc AVdPBiRvABva3/DWG16a+kVcIMyKmwGDWL31aR4aysnYR64sjXlqOr8HGR2TKjcIfEx2 xP1BHAn+hVyH8//BvGUCGRJooq10qNAcbueZqBr1E5Txtxf+9CMHuhMn2Y13DzAVml6L 8S7g== X-Gm-Message-State: AOJu0YxvNCKAAWOjcKS4tan79NyHHSJ715x8MqMd77Am++eS7cCCnHvL IFbBIGGU+73XQtKhRLhxyCoCCUq2TYszMaK/vgH3j9KD X-Google-Smtp-Source: AGHT+IHos1vogaiKtbZJETGF2CGO4xcSDfqesSCgKANe+Y1FpDFRelrXIf7s4SzkWmClN0iEmkGykA== X-Received: by 2002:a05:6830:7195:b0:6c6:50fb:cd0b with SMTP id el21-20020a056830719500b006c650fbcd0bmr8250100otb.6.1698522977750; Sat, 28 Oct 2023 12:56:17 -0700 (PDT) Received: from localhost.localdomain ([139.178.84.207]) by smtp.gmail.com with ESMTPSA id w20-20020a056830411400b006b8c87551e8sm763181ott.35.2023.10.28.12.56.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 12:56:16 -0700 (PDT) From: Adhemerval Zanella To: libc-alpha@sourceware.org, Ian Rogers , Francesco Nigro , Carlos O'Donell , Siddhesh Poyarekar Subject: [PATCH v2 5/7] assert: Decorate error message buffer Date: Sat, 28 Oct 2023 19:55:57 +0000 Message-Id: <20231028195559.390407-6-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231028195559.390407-1-adhemerval.zanella@linaro.org> References: <20231028195559.390407-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libc-alpha-bounces+incoming=patchwork.ozlabs.org@sourceware.org --- assert/assert.c | 2 ++ 1 file changed, 2 insertions(+) Reviewed-by: DJ Delorie diff --git a/assert/assert.c b/assert/assert.c index b7c7a4a1ba..bf0f4a69f5 100644 --- a/assert/assert.c +++ b/assert/assert.c @@ -24,6 +24,7 @@ #include #include #include +#include extern const char *__progname; @@ -71,6 +72,7 @@ __assert_fail_base (const char *fmt, const char *assertion, const char *file, { buf->size = total; strcpy (buf->msg, str); + __set_vma_name (buf, total, " glibc: assert"); /* We have to free the old buffer since the application might catch the SIGABRT signal. */