diff options
author | Marcin Slusarz <marcin.slusarz@gmail.com> | 2009-09-18 12:48:12 -0700 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2009-10-13 12:48:25 -0700 |
commit | 54f8dd3c99052456a65bd26aa3313f57cd145a73 (patch) | |
tree | dadf2196339e4bd6cf217c251a941c9aad6e8e82 /arch/ia64/kernel/unaligned.c | |
parent | adcd740341dbd58eb94a8c2885c171ce9eb8677c (diff) | |
download | linux-54f8dd3c99052456a65bd26aa3313f57cd145a73.tar.gz linux-54f8dd3c99052456a65bd26aa3313f57cd145a73.tar.bz2 linux-54f8dd3c99052456a65bd26aa3313f57cd145a73.zip |
[IA64] use printk_once() unaligned.c/io_common.c
Use printk_once() in a couple of places.
Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/kernel/unaligned.c')
-rw-r--r-- | arch/ia64/kernel/unaligned.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/ia64/kernel/unaligned.c b/arch/ia64/kernel/unaligned.c index 6db08599ebbc..776dd40397e2 100644 --- a/arch/ia64/kernel/unaligned.c +++ b/arch/ia64/kernel/unaligned.c @@ -60,7 +60,6 @@ dump (const char *str, void *vp, size_t len) */ int no_unaligned_warning; int unaligned_dump_stack; -static int noprint_warning; /* * For M-unit: @@ -1357,9 +1356,8 @@ ia64_handle_unaligned (unsigned long ifa, struct pt_regs *regs) /* watch for command names containing %s */ printk(KERN_WARNING "%s", buf); } else { - if (no_unaligned_warning && !noprint_warning) { - noprint_warning = 1; - printk(KERN_WARNING "%s(%d) encountered an " + if (no_unaligned_warning) { + printk_once(KERN_WARNING "%s(%d) encountered an " "unaligned exception which required\n" "kernel assistance, which degrades " "the performance of the application.\n" |