Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp192028yba; Thu, 2 May 2019 23:20:22 -0700 (PDT) X-Google-Smtp-Source: APXvYqzR8xm4Q2TprlsSe3kBPrLZjK/3QxpeM7zkdcWlqsloVRlpQhCHQdNxL7ekIp025JWOGJqx X-Received: by 2002:a17:902:442:: with SMTP id 60mr8337861ple.107.1556864422824; Thu, 02 May 2019 23:20:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556864422; cv=none; d=google.com; s=arc-20160816; b=O9CQcrYVV9BcMyraiG85N98YUuIYh4bG9x14O9/Ilep5I1zlm+mpPAxpmNKy6Nohum ufsjfT9uXc+XD6D9jFhxa4Pb4Dzvu9y6eOL4x88S9YvGhVreIAEOyEm8GaE4VLWvzU+h AXxfzYNgHUTHHEblLVML2VkxI0++f2gk0J0hEfumBevHVDLgi4l6Rr0+2XX/ZMmQ8528 vvN8WblV5rlyqSBMncT+49pya/P55R4JRK2mJdDxVxBKuOh9yGnOYVBJIRD2S//Vg7qZ bAdT1oiaKNpHTAR3aAL43Ezx+2HQLOdsxk3+XZZBT+aYMkTbzbtQ4zXUf0Qp1iw2smIl d/NQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=tU8/Io3oX6XqbOYmWxy4FQgmgtv4NyekBb6U3mYiwfQ=; b=Z9zSOWFG+Tpf5NlK/bt127oGFGraJT7QkP7A0F/Mf3L57PzGZL7YUheSacgfcNwofy eP8pqL/ybrJLEskqv+PV5p2NE0/mvvw/1k9uAlPrMjS+2p0p0JXViGETB9S/QmdN83gW Zosw8JW50sYDvFnw3Bsd9macn4jIUveJlkdppDmkpcoODZTCcrBRZMKofK1xL4Evgdqp 7pOHL1nK37CT9bo8pYJ6tAdlYKlGjirCiHF3Df5cUslbQx3zo7l05/uiQiT3JklvAdAp dNVMidZQYJA1dKdkIOoE/t6ML+3z6TRG2+4Mq+1W7lPhKKpCjUtYkLH6yqxtfnAXm2d2 Ragw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JtIcacL+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i3si1164426pgq.350.2019.05.02.23.20.07; Thu, 02 May 2019 23:20:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=JtIcacL+; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726575AbfECGQ4 (ORCPT + 99 others); Fri, 3 May 2019 02:16:56 -0400 Received: from mail-it1-f193.google.com ([209.85.166.193]:51545 "EHLO mail-it1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbfECGQz (ORCPT ); Fri, 3 May 2019 02:16:55 -0400 Received: by mail-it1-f193.google.com with SMTP id s3so7453956itk.1 for ; Thu, 02 May 2019 23:16:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=tU8/Io3oX6XqbOYmWxy4FQgmgtv4NyekBb6U3mYiwfQ=; b=JtIcacL+I73Nx94kYCWmgKP2J0l8AhtJ3iS0o7c3lvb9McIzC96QatYwqmrdn/zMIq 03str+eUlo3r/Nz3zQKqg8ebbMvKO3Bju5cAnTiH0ZtX3BTZC7kr/pOEcLGdoaiNLcyD SDf9wyx3vYjIVp5m6LoXVPO6fpE6OjC1nb1Zv2nBIrFfO75PYaqG9xn4N+sc8N0unPN5 wCRBZokDhJPoUy3yNEvT8P6nGQv+KguGOmdNJAu6oWOcyynedKw8M46M2P/i9lMUtBZ5 1jmltTiV8S8FRc//bnPGZL0GsUOoteiMZ+0N1IIohjQQPldrnahUomr17XJn16BspUe9 e4vQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=tU8/Io3oX6XqbOYmWxy4FQgmgtv4NyekBb6U3mYiwfQ=; b=D2kaC0nO/xdKOaw5F3SyNy/+LGSim8ww09qmcA9V/M9/JuJZyPm3DL1wXW+It1//Ia qUrEdOZ+r0BrnlJNhNxNZY6hq+J9447S6nL5pL1vYlSQ72QxKybI6/dnETcF2uNxzEQ8 eijo9ZpVi/d/XZ77CO58PjWZdGpJKjdcrwqIrN1NRx8AfmGCvopVFuSlD2eAyBDljim4 IFqectE/GZJuBPC6oYD9bk7G+/4MYc+IVelp7zowK8UAjf+52p6TbCgswKJNJGuYW122 YAyk8uHR7IrGM+ov6TBgunhN1/rpDs9Zy19dBW8ID0JpJzAMuNoWAPQu6B2Qg8tjjkxS BsGQ== X-Gm-Message-State: APjAAAU8TKcs+uD5aBbcBVvc7Ju1Snks3pETD50Iyz40xPdmX32l+xqp uFHbjjwidK7qN6MtONwvYsg61JQMOgZ2FDWFoQ4bvA== X-Received: by 2002:a24:59c1:: with SMTP id p184mr6060046itb.158.1556864214995; Thu, 02 May 2019 23:16:54 -0700 (PDT) MIME-Version: 1.0 References: <20190502040441.30372-1-jlee@suse.com> <20190503061518.GM11486@linux-l9pv.suse> In-Reply-To: <20190503061518.GM11486@linux-l9pv.suse> From: Ard Biesheuvel Date: Fri, 3 May 2019 08:16:42 +0200 Message-ID: Subject: Re: [PATCH 1/2 v2] efi: add a function to convert the status value to string To: joeyli Cc: "Lee, Chun-Yi" , James Morris , "Serge E . Hallyn" , David Howells , Josh Boyer , Nayna Jain , Mimi Zohar , linux-efi , linux-security-module , Linux Kernel Mailing List , Kees Cook , Anton Vorontsov , Colin Cross , Tony Luck Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 3 May 2019 at 08:15, joeyli wrote: > > On Thu, May 02, 2019 at 10:53:31AM +0200, Ard Biesheuvel wrote: > > On Thu, 2 May 2019 at 06:04, Lee, Chun-Yi wrote: > > > > > > This function can be used to convert EFI status value to string > > > for printing out debug message. Using this function can improve > > > the readability of log. > > > > > > v2. > > > > Please move the changelog out of the commit log (move it below the --- > > further down) > > > > OK! I will moved the changelog out of the commit log. > > > > - Changed the wording in subject and description. > > > - Moved the marco immediately after the status value definitions. > > > - Turned into a proper function instead of inline. > > > > > > > You missed my point here. A proper function means the function in a .c > > file, and only the declaration in a .h file. This way, you are still > > duplicating the literal strings into every object file that references > > this function. > > > > Sorry for I missunderstood. I will move the function to load_uefi.c. > No, please move it to a file that is shared between all EFI code.