diff options
author | Joe Perches <joe@perches.com> | 2014-10-31 13:50:46 -0400 |
---|---|---|
committer | Chris Metcalf <cmetcalf@tilera.com> | 2014-11-11 15:51:42 -0500 |
commit | f47436734dc89ece62654d4db8d08163a89dd7ca (patch) | |
tree | 1977a1e352588c026c87cc1fc34c93fabba6f2b7 /arch/tile/include | |
parent | ebd25caf7d511312d1a9724ab5752e9e661dfe60 (diff) |
tile: Use the more common pr_warn instead of pr_warning
And other message logging neatening.
Other miscellanea:
o coalesce formats
o realign arguments
o standardize a couple of macros
o use __func__ instead of embedding the function name
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Chris Metcalf <cmetcalf@tilera.com>
Diffstat (limited to 'arch/tile/include')
-rw-r--r-- | arch/tile/include/asm/io.h | 5 | ||||
-rw-r--r-- | arch/tile/include/asm/pgtable.h | 4 | ||||
-rw-r--r-- | arch/tile/include/asm/pgtable_64.h | 2 |
3 files changed, 5 insertions, 6 deletions
diff --git a/arch/tile/include/asm/io.h b/arch/tile/include/asm/io.h index 9fe434969fab..4353539fb887 100644 --- a/arch/tile/include/asm/io.h +++ b/arch/tile/include/asm/io.h | |||
@@ -392,8 +392,7 @@ extern void ioport_unmap(void __iomem *addr); | |||
392 | static inline long ioport_panic(void) | 392 | static inline long ioport_panic(void) |
393 | { | 393 | { |
394 | #ifdef __tilegx__ | 394 | #ifdef __tilegx__ |
395 | panic("PCI IO space support is disabled. Configure the kernel with" | 395 | panic("PCI IO space support is disabled. Configure the kernel with CONFIG_TILE_PCI_IO to enable it"); |
396 | " CONFIG_TILE_PCI_IO to enable it"); | ||
397 | #else | 396 | #else |
398 | panic("inb/outb and friends do not exist on tile"); | 397 | panic("inb/outb and friends do not exist on tile"); |
399 | #endif | 398 | #endif |
@@ -402,7 +401,7 @@ static inline long ioport_panic(void) | |||
402 | 401 | ||
403 | static inline void __iomem *ioport_map(unsigned long port, unsigned int len) | 402 | static inline void __iomem *ioport_map(unsigned long port, unsigned int len) |
404 | { | 403 | { |
405 | pr_info("ioport_map: mapping IO resources is unsupported on tile.\n"); | 404 | pr_info("ioport_map: mapping IO resources is unsupported on tile\n"); |
406 | return NULL; | 405 | return NULL; |
407 | } | 406 | } |
408 | 407 | ||
diff --git a/arch/tile/include/asm/pgtable.h b/arch/tile/include/asm/pgtable.h index 33587f16c152..5d1950788c69 100644 --- a/arch/tile/include/asm/pgtable.h +++ b/arch/tile/include/asm/pgtable.h | |||
@@ -235,9 +235,9 @@ static inline void __pte_clear(pte_t *ptep) | |||
235 | #define pte_donemigrate(x) hv_pte_set_present(hv_pte_clear_migrating(x)) | 235 | #define pte_donemigrate(x) hv_pte_set_present(hv_pte_clear_migrating(x)) |
236 | 236 | ||
237 | #define pte_ERROR(e) \ | 237 | #define pte_ERROR(e) \ |
238 | pr_err("%s:%d: bad pte 0x%016llx.\n", __FILE__, __LINE__, pte_val(e)) | 238 | pr_err("%s:%d: bad pte 0x%016llx\n", __FILE__, __LINE__, pte_val(e)) |
239 | #define pgd_ERROR(e) \ | 239 | #define pgd_ERROR(e) \ |
240 | pr_err("%s:%d: bad pgd 0x%016llx.\n", __FILE__, __LINE__, pgd_val(e)) | 240 | pr_err("%s:%d: bad pgd 0x%016llx\n", __FILE__, __LINE__, pgd_val(e)) |
241 | 241 | ||
242 | /* Return PA and protection info for a given kernel VA. */ | 242 | /* Return PA and protection info for a given kernel VA. */ |
243 | int va_to_cpa_and_pte(void *va, phys_addr_t *cpa, pte_t *pte); | 243 | int va_to_cpa_and_pte(void *va, phys_addr_t *cpa, pte_t *pte); |
diff --git a/arch/tile/include/asm/pgtable_64.h b/arch/tile/include/asm/pgtable_64.h index 2c8a9cd102d3..e96cec52f6d8 100644 --- a/arch/tile/include/asm/pgtable_64.h +++ b/arch/tile/include/asm/pgtable_64.h | |||
@@ -86,7 +86,7 @@ static inline int pud_huge_page(pud_t pud) | |||
86 | } | 86 | } |
87 | 87 | ||
88 | #define pmd_ERROR(e) \ | 88 | #define pmd_ERROR(e) \ |
89 | pr_err("%s:%d: bad pmd 0x%016llx.\n", __FILE__, __LINE__, pmd_val(e)) | 89 | pr_err("%s:%d: bad pmd 0x%016llx\n", __FILE__, __LINE__, pmd_val(e)) |
90 | 90 | ||
91 | static inline void pud_clear(pud_t *pudp) | 91 | static inline void pud_clear(pud_t *pudp) |
92 | { | 92 | { |