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 X-Patchwork-Id: 738985 Delivered-To: patch@linaro.org Received: by 2002:a5d:4c47:0:b0:32d:baff:b0ca with SMTP id n7csp482875wrt; Sat, 28 Oct 2023 12:56:49 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFcIegcP2qfLPwMDDuWUnDQr8qg4mITjN/evbGfLkd6U4KN9GZSQQNjxvAKS2WGe+g/53r0 X-Received: by 2002:a05:622a:181b:b0:41c:c6b4:8c0d with SMTP id t27-20020a05622a181b00b0041cc6b48c0dmr7417205qtc.9.1698523009343; Sat, 28 Oct 2023 12:56:49 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1698523009; cv=pass; d=google.com; s=arc-20160816; b=Yc1kr6IcYBPt2a4ibJysJ1ancKCZaPlIHX/mYCbP7l1U5pDaGTD+J903cKgHUANZuP NBlVw8u1oIPYpmKMfS5XaEXgdqgb3mv4Z5MtUjz4X8DcNsl6e4OYWR0LKNWM8QUw09Om km31kWj7wb3E2H9bOyiRIwKRGfKnjOuRkmL9cdYDwZnAzybL5C3tts5trPD6qpRG948K 610FFt1EzNlSsmB31QLvxGb3SJlCGL4T/Ah/jTgmohVdsfhWMK4yt78gdy8IuScN8pcD HswLwlvAy/IIB4KzMMjGw4NaJZx09JGFtQi9fzwhjuCxwNNv3by8t7jx1suukTBipNGx ByxQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature:arc-filter:dmarc-filter:delivered-to; bh=xLM6XTFrju2h0P2Jp6D87i92a5MTlqzEcCSkMAXExHA=; fh=Lbqp+rs2mRBTG5C9ik7cirOzlOF2+U9yLxjtEQVqExY=; b=GXslmwfbTHYySQ2gcsZZwR7b9jC3gE6Om5KVc+PKfgvjzv1/PXz+dQ8ZVihCNOZ0iJ nth8RGBat1d3N7L4Zi7SASsbbGZOMm1m+rI4X4dADddqwXUL3ZkPtEKl1wWynfp69aqp sLghLaFOLFL30uI1OkwtrfmVHe8ylx2kbo5tuu+D+nIOdglcepB4fa4xUFiiI+BB6m0Z u2qGprLHT7Yikqx8AGezLklAscaHWABIzN/OeiXm4aim7u0+6tQht2sZHiOvqWpbHMYQ 7wO83Sn5RUoQIHnxzYBWYEBO54NfAgIrExK9KPoTI6LFKKwBn82wqYLrgkqC3Z5eGmTD okFA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hwx16VM/"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j7-20020ac85f87000000b0041991869095si2906850qta.330.2023.10.28.12.56.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 Oct 2023 12:56:49 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="hwx16VM/"; arc=pass (i=1); spf=pass (google.com: domain of libc-alpha-bounces+patch=linaro.org@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="libc-alpha-bounces+patch=linaro.org@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0428438708BC for ; Sat, 28 Oct 2023 19:56:49 +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-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+patch=linaro.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. */