Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1213640
| From | Taku Izumi <izumi.taku@jp.fujitsu.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/3] efi: Change abbreviation of EFI_MEMORY_RUNTIME from "RUN" to "RT" |
| Date | 2015-08-26 10:10 +0200 |
| Message-ID | <q1DWq-8lX-1@gated-at.bofh.it> (permalink) |
| References | <q1DWq-8lX-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Now efi_md_typeattr_format() outputs "RUN" if passed EFI memory descriptor has EFI_MEMORY_RUNTIME attribute. But "RT" is preferer because it is shorter and clearer. This patch changes abbreviation of EFI_MEMORY_RUNTIME from "RUN" to "RT". Suggested-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com> --- drivers/firmware/efi/efi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/firmware/efi/efi.c b/drivers/firmware/efi/efi.c index 8124078..25b6477 100644 --- a/drivers/firmware/efi/efi.c +++ b/drivers/firmware/efi/efi.c @@ -594,8 +594,8 @@ char * __init efi_md_typeattr_format(char *buf, size_t size, snprintf(pos, size, "|attr=0x%016llx]", (unsigned long long)attr); else - snprintf(pos, size, "|%3s|%2s|%2s|%2s|%2s|%3s|%2s|%2s|%2s|%2s]", - attr & EFI_MEMORY_RUNTIME ? "RUN" : "", + snprintf(pos, size, "|%2s|%2s|%2s|%2s|%2s|%3s|%2s|%2s|%2s|%2s]", + attr & EFI_MEMORY_RUNTIME ? "RT" : "", attr & EFI_MEMORY_MORE_RELIABLE ? "MR" : "", attr & EFI_MEMORY_XP ? "XP" : "", attr & EFI_MEMORY_RP ? "RP" : "", -- 1.8.3.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH v2 2/3] efi: Change abbreviation of EFI_MEMORY_RUNTIME from "RUN" to "RT" Taku Izumi <izumi.taku@jp.fujitsu.com> - 2015-08-26 10:10 +0200
csiph-web