diff options
author | Joe Perches <joe@perches.com> | 2014-12-10 18:59:59 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-12-10 20:41:11 -0500 |
commit | f80e696854c95725cf7faf9776e02f00600780d3 (patch) | |
tree | f9886531fdbbc3e9097d92d86df24217aea5d197 /arch/tile | |
parent | 4b3ed6148521ff11c2b3acb5c983c0080c67d856 (diff) |
tile: use pr_warn instead of pr_warning
Use the more common pr_warn.
Coalesce formats, realign arguments.
Signed-off-by: Joe Perches <joe@perches.com>
Acked-by: Chris Metcalf <cmetcalf@tilera.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/tile')
-rw-r--r-- | arch/tile/kernel/setup.c | 33 |
1 files changed, 15 insertions, 18 deletions
diff --git a/arch/tile/kernel/setup.c b/arch/tile/kernel/setup.c index 6471cc55bf05..7f079bbfdf4c 100644 --- a/arch/tile/kernel/setup.c +++ b/arch/tile/kernel/setup.c | |||
@@ -534,11 +534,10 @@ static void __init setup_memory(void) | |||
534 | } | 534 | } |
535 | } | 535 | } |
536 | physpages -= dropped_pages; | 536 | physpages -= dropped_pages; |
537 | pr_warning("Only using %ldMB memory;" | 537 | pr_warn("Only using %ldMB memory - ignoring %ldMB\n", |
538 | " ignoring %ldMB.\n", | 538 | physpages >> (20 - PAGE_SHIFT), |
539 | physpages >> (20 - PAGE_SHIFT), | 539 | dropped_pages >> (20 - PAGE_SHIFT)); |
540 | dropped_pages >> (20 - PAGE_SHIFT)); | 540 | pr_warn("Consider using a larger page size\n"); |
541 | pr_warning("Consider using a larger page size.\n"); | ||
542 | } | 541 | } |
543 | #endif | 542 | #endif |
544 | 543 | ||
@@ -566,9 +565,8 @@ static void __init setup_memory(void) | |||
566 | 565 | ||
567 | #ifndef __tilegx__ | 566 | #ifndef __tilegx__ |
568 | if (node_end_pfn[0] > MAXMEM_PFN) { | 567 | if (node_end_pfn[0] > MAXMEM_PFN) { |
569 | pr_warning("Only using %ldMB LOWMEM.\n", | 568 | pr_warn("Only using %ldMB LOWMEM\n", MAXMEM >> 20); |
570 | MAXMEM>>20); | 569 | pr_warn("Use a HIGHMEM enabled kernel\n"); |
571 | pr_warning("Use a HIGHMEM enabled kernel.\n"); | ||
572 | max_low_pfn = MAXMEM_PFN; | 570 | max_low_pfn = MAXMEM_PFN; |
573 | max_pfn = MAXMEM_PFN; | 571 | max_pfn = MAXMEM_PFN; |
574 | node_end_pfn[0] = MAXMEM_PFN; | 572 | node_end_pfn[0] = MAXMEM_PFN; |
@@ -1112,8 +1110,8 @@ static void __init load_hv_initrd(void) | |||
1112 | fd = hv_fs_findfile((HV_VirtAddr) initramfs_file); | 1110 | fd = hv_fs_findfile((HV_VirtAddr) initramfs_file); |
1113 | if (fd == HV_ENOENT) { | 1111 | if (fd == HV_ENOENT) { |
1114 | if (set_initramfs_file) { | 1112 | if (set_initramfs_file) { |
1115 | pr_warning("No such hvfs initramfs file '%s'\n", | 1113 | pr_warn("No such hvfs initramfs file '%s'\n", |
1116 | initramfs_file); | 1114 | initramfs_file); |
1117 | return; | 1115 | return; |
1118 | } else { | 1116 | } else { |
1119 | /* Try old backwards-compatible name. */ | 1117 | /* Try old backwards-compatible name. */ |
@@ -1126,8 +1124,8 @@ static void __init load_hv_initrd(void) | |||
1126 | stat = hv_fs_fstat(fd); | 1124 | stat = hv_fs_fstat(fd); |
1127 | BUG_ON(stat.size < 0); | 1125 | BUG_ON(stat.size < 0); |
1128 | if (stat.flags & HV_FS_ISDIR) { | 1126 | if (stat.flags & HV_FS_ISDIR) { |
1129 | pr_warning("Ignoring hvfs file '%s': it's a directory.\n", | 1127 | pr_warn("Ignoring hvfs file '%s': it's a directory\n", |
1130 | initramfs_file); | 1128 | initramfs_file); |
1131 | return; | 1129 | return; |
1132 | } | 1130 | } |
1133 | initrd = alloc_bootmem_pages(stat.size); | 1131 | initrd = alloc_bootmem_pages(stat.size); |
@@ -1185,9 +1183,8 @@ static void __init validate_hv(void) | |||
1185 | HV_Topology topology = hv_inquire_topology(); | 1183 | HV_Topology topology = hv_inquire_topology(); |
1186 | BUG_ON(topology.coord.x != 0 || topology.coord.y != 0); | 1184 | BUG_ON(topology.coord.x != 0 || topology.coord.y != 0); |
1187 | if (topology.width != 1 || topology.height != 1) { | 1185 | if (topology.width != 1 || topology.height != 1) { |
1188 | pr_warning("Warning: booting UP kernel on %dx%d grid;" | 1186 | pr_warn("Warning: booting UP kernel on %dx%d grid; will ignore all but first tile\n", |
1189 | " will ignore all but first tile.\n", | 1187 | topology.width, topology.height); |
1190 | topology.width, topology.height); | ||
1191 | } | 1188 | } |
1192 | #endif | 1189 | #endif |
1193 | 1190 | ||
@@ -1393,7 +1390,7 @@ static void __init setup_cpu_maps(void) | |||
1393 | 1390 | ||
1394 | static int __init dataplane(char *str) | 1391 | static int __init dataplane(char *str) |
1395 | { | 1392 | { |
1396 | pr_warning("WARNING: dataplane support disabled in this kernel\n"); | 1393 | pr_warn("WARNING: dataplane support disabled in this kernel\n"); |
1397 | return 0; | 1394 | return 0; |
1398 | } | 1395 | } |
1399 | 1396 | ||
@@ -1411,8 +1408,8 @@ void __init setup_arch(char **cmdline_p) | |||
1411 | len = hv_get_command_line((HV_VirtAddr) boot_command_line, | 1408 | len = hv_get_command_line((HV_VirtAddr) boot_command_line, |
1412 | COMMAND_LINE_SIZE); | 1409 | COMMAND_LINE_SIZE); |
1413 | if (boot_command_line[0]) | 1410 | if (boot_command_line[0]) |
1414 | pr_warning("WARNING: ignoring dynamic command line \"%s\"\n", | 1411 | pr_warn("WARNING: ignoring dynamic command line \"%s\"\n", |
1415 | boot_command_line); | 1412 | boot_command_line); |
1416 | strlcpy(boot_command_line, builtin_cmdline, COMMAND_LINE_SIZE); | 1413 | strlcpy(boot_command_line, builtin_cmdline, COMMAND_LINE_SIZE); |
1417 | #else | 1414 | #else |
1418 | char *hv_cmdline; | 1415 | char *hv_cmdline; |