From patchwork Fri Jan 4 11:03:10 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 154758 Delivered-To: patch@linaro.org Received: by 2002:a2e:299d:0:0:0:0:0 with SMTP id p29-v6csp495486ljp; Fri, 4 Jan 2019 03:03:35 -0800 (PST) X-Google-Smtp-Source: ALg8bN5LMA8Qvsoru29mmvsENNhGikF5yr6/1zw6RJQZciovlMlutO7QH8OoCMosk6n1wkHSsgSQ X-Received: by 2002:a63:561b:: with SMTP id k27mr1246196pgb.271.1546599815246; Fri, 04 Jan 2019 03:03:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1546599815; cv=none; d=google.com; s=arc-20160816; b=LvWi2mFp/tV+56X53MefsO8NR37p5CqCb2kpUh7kCwEwqoRh7iIDCOG7KHGuGad8Zw JVEhr/hHkI6UZjW8/1Pk0wiWtdPu7YQItqNuVm2Nx99qU9Kttx85VpaYsJKj1Fye8Sxh CdZIsoZ+0yZvu9AWOdzPUhcohzFWLVbAJtWO1dvrVbR5EM6gppNfkoZ9QcoZTJainmQF Zu1bCRkQwac1CJrfy9H0udcd49BA9jL7Y1tY72WzowsJDDDmJBUvyd0Ae7ZZNlj/eSPp TyFylZLyF7YvLHP76TUfKfUUkiO1Juf7UD4vmG0o9srfK5/TZ3coe+6zXj6Sa+dC1uk0 5mTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version:cc :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:references:in-reply-to:message-id:date :to:from:dkim-signature:delivered-to; bh=k3GgLj+tUCu3Y3FG/T3aGG1mjSm7mL3h4mf2IijW+No=; b=RiH20lBxvN9wXB71R4E01ljCegVFak8wsxd0XF3jyVPZEeVx7wyUGf22Kz/VAnlBLj bh9k/DmuPo23KEFMxQe5fbQJ43GSoELVt700vmP7VzJJpiY5yYVsqGSpz7C4ym4KHUPK ONrUS9sc9xM+SoFPhUoKYTbjfQep4OlIW6ytEsq1ugbOm65TewV2zwYsUgLM+jpw2gTO sDYQ9zWCFuc2RZT7phQpT8p/6aaq89JUplUQ9kRLuKNAzKfvkjurGMpwMDz2xFujEQ70 eZZKWMEd1LptJgbODYTnXvgpdbwrqC+YzAMmJns7vxnl2sKCBtETUHiQIZg18enN6y+q DziA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NBeo4fw+; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from ml01.01.org (ml01.01.org. [2001:19d0:306:5::1]) by mx.google.com with ESMTPS id 101si56846841pld.22.2019.01.04.03.03.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 03:03:35 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) client-ip=2001:19d0:306:5::1; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=NBeo4fw+; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 2001:19d0:306:5::1 as permitted sender) smtp.mailfrom=edk2-devel-bounces@lists.01.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id 9C047211AE8BD; Fri, 4 Jan 2019 03:03:30 -0800 (PST) X-Original-To: edk2-devel@lists.01.org Delivered-To: edk2-devel@lists.01.org Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=2a00:1450:4864:20::543; helo=mail-ed1-x543.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-ed1-x543.google.com (mail-ed1-x543.google.com [IPv6:2a00:1450:4864:20::543]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id B188F211AE8B7 for ; Fri, 4 Jan 2019 03:03:29 -0800 (PST) Received: by mail-ed1-x543.google.com with SMTP id y20so31422779edw.9 for ; Fri, 04 Jan 2019 03:03:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=o5PGhFykECSIPAt3paN1u4wno5pYTItFJUaaMuWTOXE=; b=NBeo4fw+N5NUc8eS1AyuePOFo1pNwKjVIipwZGaU2mxdFqJbEut9aFYa87aYtnHwyX gD/1hUAyyqUQ0jGtlvt+YiW+ltCoIIxaqb6UEm6nVHECUF2WDPFTEq37jbrlpnxzlmct 0t2Q3IkREswkLzeQUUfjlkH2q8oyHm1vrdb9s= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=o5PGhFykECSIPAt3paN1u4wno5pYTItFJUaaMuWTOXE=; b=VUXmnULTQq1YJuftLd5dHwCMu2Ax3kDSU8kpFJxDrmdXqlZ1UHTdvBgd0YMcHDdsOV C9eC05mg1h2sR0//evuS0GHn/+dycwZtH+rF/ZSPX7Kt4tjp4Y9xAIIvZG4d4KF2+YCD HtQbMK8VUnh62H033+U8Wx6Un6Tz2CiY1RyNS2L8YD+VGHV++jMiONzXxbXliPg3DiXn 5iCwNqD+l5yCv/Q5s4bwCsS6lIJBe5CyTKdShdhdNJlJScLi4sXPh/eCxEgv34PwNmYA QKeqbS79TniVlZMRCv7HtZsKAhbcrPaZx8p2OP8duH8Gzry6FZDIv2j8OQaL/urOZ9YL 2QPw== X-Gm-Message-State: AA+aEWYDhD79cFH7QvM1/tI4iLTLL3a7hNPjiLhqCISWGtWHok1NNOAw BJlSrHq8cMAw05Z4ZN5VN4I6jHClAtELNQ== X-Received: by 2002:a17:906:4944:: with SMTP id f4-v6mr38627307ejt.72.1546599807924; Fri, 04 Jan 2019 03:03:27 -0800 (PST) Received: from dogfood.home ([2a01:cb1d:112:6f00:704e:c241:dc88:597d]) by smtp.gmail.com with ESMTPSA id n11sm26650578edn.14.2019.01.04.03.03.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 04 Jan 2019 03:03:27 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Fri, 4 Jan 2019 12:03:10 +0100 Message-Id: <20190104110315.18339-4-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190104110315.18339-1-ard.biesheuvel@linaro.org> References: <20190104110315.18339-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH 3/8] StandaloneMmPkg/StandaloneMmCoreEntryPoint: use %a modifier for ASCII strings X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Jiewen Yao MIME-Version: 1.0 Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" PE/COFF section names are ASCII strings so use %a not %s. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Ard Biesheuvel --- StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.17.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel Reviewed-by: Supreeth Venkatesh diff --git a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c index 60c1f66b83fa..3ca7f6660f47 100644 --- a/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c +++ b/StandaloneMmPkg/Library/StandaloneMmCoreEntryPoint/AArch64/SetPermissions.c @@ -78,7 +78,7 @@ UpdateMmFoundationPeCoffPermissions ( "%a: Section %d of image at 0x%lx has 0x%x permissions\n", __FUNCTION__, Index, ImageContext->ImageAddress, SectionHeader.Characteristics)); DEBUG ((DEBUG_INFO, - "%a: Section %d of image at 0x%lx has %s name\n", + "%a: Section %d of image at 0x%lx has %a name\n", __FUNCTION__, Index, ImageContext->ImageAddress, SectionHeader.Name)); DEBUG ((DEBUG_INFO, "%a: Section %d of image at 0x%lx has 0x%x address\n",