From: Kees Cook Date: Fri, 26 Oct 2018 08:14:01 +0000 (-0700) Subject: pstore/ram: Standardize module name in ramoops X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=9ee85b8bd3cab1a151850b6648cab7ed2e0d8192;p=linux.git pstore/ram: Standardize module name in ramoops With both ram.c and ram_core.c built into ramoops.ko, it doesn't make sense to have differing pr_fmt prefixes. This fixes ram_core.c to use the module name (as ram.c already does). Additionally improves region reservation error to include the region name. Signed-off-by: Kees Cook --- diff --git a/fs/pstore/ram_core.c b/fs/pstore/ram_core.c index 23ca6f2c98a0a..f5d0173901aa2 100644 --- a/fs/pstore/ram_core.c +++ b/fs/pstore/ram_core.c @@ -12,7 +12,7 @@ * */ -#define pr_fmt(fmt) "persistent_ram: " fmt +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt #include #include @@ -443,7 +443,8 @@ static void *persistent_ram_iomap(phys_addr_t start, size_t size, void *va; if (!request_mem_region(start, size, label ?: "ramoops")) { - pr_err("request mem region (0x%llx@0x%llx) failed\n", + pr_err("request mem region (%s 0x%llx@0x%llx) failed\n", + label ?: "ramoops", (unsigned long long)size, (unsigned long long)start); return NULL; }