From patchwork Wed Jan 16 20:22:31 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 155754 Delivered-To: patch@linaro.org Received: by 2002:a02:48:0:0:0:0:0 with SMTP id 69csp1096860jaa; Wed, 16 Jan 2019 12:23:06 -0800 (PST) X-Google-Smtp-Source: ALg8bN7YcigMb/ZE6+Qj6CROEVWn4ep+3povGarWFoPwt3T9RDPVIvQe8IJEM7WVo9LYEIP46qR7 X-Received: by 2002:a17:902:8b88:: with SMTP id ay8mr11859609plb.55.1547670186679; Wed, 16 Jan 2019 12:23:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547670186; cv=none; d=google.com; s=arc-20160816; b=W5z36HUbb9XA9BZEApKtzLe3aquJmwevKsd3Hd1+F+77tY6BdDksGBlOdsZh+G21Gc n7bKRAcHNllbOimv/uYwUKBJBRJX+9NBIpbtdY8c1ANJiLxxpl5QNIKupRmIlG0ULhVU f+T+ZMQgVSB1XAWAbH4KbVwFIGjaAF/qMAcSbhJNBOEwv/5NBVrdOTXv+xePG0+0QJ0J wbjKw7GTby+2lJmlaEmQ/GIv8JPTAFoPIgKwrTHq6/xccu74ETpcBgOq1rQWIPf/AG+M X0vPFTRb3QqknTm14Cd7Pk5tkGg1/QqmT4PdCZWZyUeaV3BsXPDxj9y+bHP5RH7kFy4M yxPA== 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=UVXecLeS9Jh6+blOKwM6vfXNn2Va2B0x4RngKeh0Gj4=; b=PzpHbTSCvmgZAzbLNdjtLQKco8HI+Oo5gZV1tHxYCJlhj/d47+jdJJONp9DGPjjkQs s60c++eR2F+PMWpGBnrwZbqY5SDu9zbVhqhN7nYjgy/w5uqDwCBHPb6PmkVBStBU5lUi ZATJMTU/lZp9E0b/jKqa5RpcjSTXHXa+zTdEUQUPin1p/teSLDDlogAYYxYzrhsgwc3f m6rU4e8u06O969TkzLyoLycyYedvchuxPYUdf/PdFeJ+0599TEuiZaj9vci52l1oe5TT 5pCtI2OEwNsv+rcVOcAfgLuwBhV4Uj0p3umTCp/DQDiNWY5zpecqVkydWfRpDpC3iKDF xVHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MUqvUz5+; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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. [198.145.21.10]) by mx.google.com with ESMTPS id gn22si6760830plb.19.2019.01.16.12.23.06 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 12:23:06 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 as permitted sender) client-ip=198.145.21.10; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MUqvUz5+; spf=pass (google.com: best guess record for domain of edk2-devel-bounces@lists.01.org designates 198.145.21.10 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 810A1211B81A9; Wed, 16 Jan 2019 12:22:54 -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::444; helo=mail-wr1-x444.google.com; envelope-from=ard.biesheuvel@linaro.org; receiver=edk2-devel@lists.01.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) (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 16801211B76AA for ; Wed, 16 Jan 2019 12:22:52 -0800 (PST) Received: by mail-wr1-x444.google.com with SMTP id t27so8482971wra.6 for ; Wed, 16 Jan 2019 12:22:52 -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=X2M7UBPF7Gie++HujcaNxBU7lIsaE0uU6J7TWbQ5/0w=; b=MUqvUz5+c/F8GlV/bOnX6ajXnwO7O4JWoy17QTHdYxp4Lv6wyU+pqCI6ME+dGxxC8Q xwhruEERssxC/ckbQ6dkxIINRfB8ASzTgtY1Q6vVw4ZLHbjGXXE6u7/pFoxPW/C9DJ5B JbQALcNjHuIXYkfP4RY0eTFWBGP02e4amutqE= 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=X2M7UBPF7Gie++HujcaNxBU7lIsaE0uU6J7TWbQ5/0w=; b=Gr/eBII98k99JTFkGM6UUbTfkoMF7PM054YCETxuvNMv6FI75HELq+A4GliXbiwM9H NDhUYG145BTNGDpwoCDNUD8Dg3o68Du1rpKG3FZeR2SwsXyi9lGVeeEz2uG8/pQo9V5L SjQpqLCjggnSBS0DVIPOFqy4iQ+pZwqNE0jR8A5+NeHTbzm5Zg19HUCvWTUevTX4+iYJ 8Xkd5rWsQdUYY1SLlk3jB4bsE9QBTfT2whxBrF7pAgMxxmRHLHTjKIuAnbCG+jWcvd2E pj7GfFlUTx5vhx+vqEjcmvqI7QXMG6MqKWE4x/Uv5aml0YPUdlAVYp+zjwNyVDQ3sz1L qpnA== X-Gm-Message-State: AJcUukennZp0dAYWjsok7O9h51LHINe6pYpNV2T51FTUOvjqYwEeudLz Sf6cESYlz4jlwZeM7k8TcRsqXi+rbFxVGw== X-Received: by 2002:a5d:4250:: with SMTP id s16mr9080749wrr.253.1547670171312; Wed, 16 Jan 2019 12:22:51 -0800 (PST) Received: from dogfood.home ([2a01:cb1d:112:6f00:28df:207d:542c:1451]) by smtp.gmail.com with ESMTPSA id p139sm70901316wmd.31.2019.01.16.12.22.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 16 Jan 2019 12:22:50 -0800 (PST) From: Ard Biesheuvel To: edk2-devel@lists.01.org Date: Wed, 16 Jan 2019 21:22:31 +0100 Message-Id: <20190116202236.6977-7-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190116202236.6977-1-ard.biesheuvel@linaro.org> References: <20190116202236.6977-1-ard.biesheuvel@linaro.org> Subject: [edk2] [PATCH v2 06/11] 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 Reviewed-by: Supreeth Venkatesh --- 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 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",