On Wednesday, February 19, 2014 04:46:19 PM Sudeep Holla wrote:
On 19/02/14 16:49, Rafael J. Wysocki wrote:
On Wednesday, February 19, 2014 04:32:34 PM Sudeep Holla wrote:
On 18/02/14 13:55, Hanjun Guo wrote:
This patch just do some clean up to replace printk with pr_*,Any particular reason for choosing just this file in this series ?
no functional change.
Well, precisely. That's why I'd prefer doing that gradually.No what I meant was to convert all for consistency, not in a single patch.It seems but off-topic in this series. The printk format is same in almost allWell, it's fine, I can put it into a different branch in any case. :-)
other acpi files and it's better to change all or none for consistency.
But this is a good point.Signed-off-by: Hanjun Guo <hanjun.guo@xxxxxxxxxx>You can even get rid of PREFIX by defining pr_fmt instead.
---
drivers/acpi/tables.c | 51 +++++++++++++++++++------------------------------
1 file changed, 20 insertions(+), 31 deletions(-)
diff --git a/drivers/acpi/tables.c b/drivers/acpi/tables.c
index 5837f85..97bc6df 100644
--- a/drivers/acpi/tables.c
+++ b/drivers/acpi/tables.c
@@ -55,8 +55,7 @@ void acpi_table_print_madt_entry(struct acpi_subtable_header *header)
{
struct acpi_madt_local_apic *p =
(struct acpi_madt_local_apic *)header;
- printk(KERN_INFO PREFIX
- "LAPIC (acpi_id[0x%02x] lapic_id[0x%02x] %s)\n",
+ pr_info(PREFIX "LAPIC (acpi_id[0x%02x] lapic_id[0x%02x] %s)\n",
If the intention is to move to pr_* format it's better to have this as separateWell, not really. One file at a time is OK too.
patch and convert all of them.
As I was playing with regex for few minutes, with few patterns was able to fix
most(not all) of them. It even compiles :) for x86. But turns out to be a big
churn :( [43 files changed, 253 insertions(+), 329 deletions(-)]
That said I'll just drop the patch for now due to the PREFIX thing.