From patchwork Wed Jul 26 00:38:43 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alan Modra X-Patchwork-Id: 126010 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a985:0:b0:3e4:2afc:c1 with SMTP id t5csp95786vqo; Tue, 25 Jul 2023 17:39:48 -0700 (PDT) X-Google-Smtp-Source: APBJJlEAf/n5mYYYT0EEa1nk7dWXGFNmuFpEQ8EGvRpP+i3sdYy6DDY3WnmZMgIvs+bwZaWyV8yL X-Received: by 2002:a17:906:8472:b0:99b:5161:8e0d with SMTP id hx18-20020a170906847200b0099b51618e0dmr264436ejc.21.1690331988186; Tue, 25 Jul 2023 17:39:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690331988; cv=none; d=google.com; s=arc-20160816; b=o9x3XvhQtgKL5Hw5ebckRCdYQO3bLBPyx2I98H8wRNKDVfWCdhSo+aJk1CaC+bhcjA 4ockNI3fIKuc6HcYixjLuy+94cc6HJAYXcJGMkn7i4eXEp+fhs7d+xGHQ6ZNKRuooJM7 ghfCAs5zaYEZ9qbKDL6QyTAPSFWyRYkpqN4Tr+ycu9u1y7cuGafq904lSWuZdAn8L+FM lXSQMQ+FsMjHBlo4JUO9doTQDLv0pOr+qQQV04HNVQQ9+agPl0IgrX9H85Vk9wa6xwAU gaETJCW8q4XPyGqOnRuIThuKcXVZ6odEndb1UmkqrOyQdmxhivdeeTVC3L/NQzYlXOjU WeQQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-disposition:mime-version:message-id:subject:to:date :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=xhUHSvNo9lMbCWeY3tzMtPxz1RbLyWGzrSBo7g2RsFs=; fh=HNIqzTA9Dp00ovCAyCdXfuEvWDT00OlFxFRPLybXRis=; b=p23Tvx+S0peHFmKN5+46w0hgAud3dG1YKK/1uM1NmiKf+yGGfmqcfBLO7NSypUG92W IZeJysIM2cdXkw9fymzy6EoFwM1TUqFyzjd+lIoGzsTOkzwj6CegGbEFbgqpayH1aABx YT6EJNn8fFJ4TnWWF8PBZMGw7UEge+qWm8bsEmsYakFkVHbti03ssxPyS632Q7brb5eC UZ6CtDKHjcy1ARTuMTBsUGDQ6QmkGEuiSIAxwkwf3qDHVvWCcCdh1/1nmI8kRsix/Nxo 7dTUysmu/bMBrkdVzTpls/U0pfdxvUK3fMA03ziF3s8x8NnNHgrZCfBti/jlJT6pr64B tnFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@sourceware.org header.s=default header.b=ura+YVQ6; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l19-20020a170906415300b0099b45b7c987si8641278ejk.519.2023.07.25.17.39.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 17:39:48 -0700 (PDT) Received-SPF: pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@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=@sourceware.org header.s=default header.b=ura+YVQ6; spf=pass (google.com: domain of binutils-bounces+ouuuleilei=gmail.com@sourceware.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="binutils-bounces+ouuuleilei=gmail.com@sourceware.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 16A7E385DC13 for ; Wed, 26 Jul 2023 00:39:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 16A7E385DC13 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1690331981; bh=xhUHSvNo9lMbCWeY3tzMtPxz1RbLyWGzrSBo7g2RsFs=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=ura+YVQ6Z4kUE1BZBtU75JYpmTH7nAMXKNbk60u6TmF3Eo3/Qb3e+kuMvEoOK6Ns2 VLQkk+qOjYc/7y88djOVHizseVyRqEoN6Vqd8kwjaruolvcGBTrHuI3REGy+rM051o 2DQqJRqRJ+oxY7Z5fn2lVpG+/FNj4jYsZ6qNBezo= X-Original-To: binutils@sourceware.org Delivered-To: binutils@sourceware.org Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id C8580385DC2B for ; Wed, 26 Jul 2023 00:38:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C8580385DC2B Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-686b879f605so571174b3a.1 for ; Tue, 25 Jul 2023 17:38:48 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690331926; x=1690936726; h=content-disposition:mime-version:message-id:subject:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=xhUHSvNo9lMbCWeY3tzMtPxz1RbLyWGzrSBo7g2RsFs=; b=jsL5maRkHoljuSmWpw7Rmrlh8LYJDYYTA2Hidl5Iz3bUraalxx/scLF6HSQ+UcppxN EX0kXR4cP0XD3A93E9TqTPZRUnWDROucAvSOgZwnqmXqr4/zV4McKZm+Sri9gV8M6LPy jpQCgBtZc4CqPKsQpoDO/4ytBhOuzblim9M5QCLVyA/xJhHIEbGX5KwsQDJsDr0VCGme HaHE590B9iq5Ep00Y8YAqW06pEzjOt5fF7TNgaKgfUlAS8HnkzIFGKEVkPje6/IPq+so xUIqJo4+8kz6y9sGxO+cqnQn9uPWo+lbhcm5DyZGbiAhkKFDe86gf6ZpbvdorQRcZUs7 HdLA== X-Gm-Message-State: ABy/qLZFuD3yRotwKgV70Sbz/P/DFZdmIVVg4rhyAW2gruTRk6XsrlXA PzDLNIgjPmbM7nA+ib8X4emcLJQuyBQ= X-Received: by 2002:a05:6a20:dda4:b0:133:6b64:c92 with SMTP id kw36-20020a056a20dda400b001336b640c92mr394911pzb.44.1690331926560; Tue, 25 Jul 2023 17:38:46 -0700 (PDT) Received: from squeak.grove.modra.org (158.106.96.58.static.exetel.com.au. [58.96.106.158]) by smtp.gmail.com with ESMTPSA id s2-20020aa78d42000000b00686a80f431dsm1196827pfe.126.2023.07.25.17.38.45 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 25 Jul 2023 17:38:46 -0700 (PDT) Received: by squeak.grove.modra.org (Postfix, from userid 1000) id A919B1142902; Wed, 26 Jul 2023 10:08:43 +0930 (ACST) Date: Wed, 26 Jul 2023 10:08:43 +0930 To: binutils@sourceware.org Subject: bpf: format not a string literal Message-ID: MIME-Version: 1.0 Content-Disposition: inline X-Spam-Status: No, score=-3034.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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: binutils@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Alan Modra via Binutils From: Alan Modra Reply-To: Alan Modra Errors-To: binutils-bounces+ouuuleilei=gmail.com@sourceware.org Sender: "Binutils" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1772441554706324892 X-GMAIL-MSGID: 1772441554706324892 * config/tc-bpf.c (md_assemble): Correct as_bad call. diff --git a/gas/config/tc-bpf.c b/gas/config/tc-bpf.c index c56b8fe984f..095b05ac7af 100644 --- a/gas/config/tc-bpf.c +++ b/gas/config/tc-bpf.c @@ -853,7 +853,7 @@ md_assemble (char *str ATTRIBUTE_UNUSED) as_bad (_("unrecognized instruction `%s'"), str); if (errmsg != NULL) { - as_bad (errmsg); + as_bad ("%s", errmsg); free (errmsg); }