Skip to contentSkip to conversation

PCI/ACPI: Change dev_info() to dev_dbg() in the acpi_pci_set_power_state()

PATCH In review [email protected] 3 participants 5 messages Jul 30, 2013 – Jul 31, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 PCI/ACPI: Change dev_info() to dev_dbg() in the acpi_pci_set_power_state()

From: Lan Tianyu <[email protected]>

acpi_pci_set_power_state() produces log of device power state changing. Now the log is produced by dev_info(). This seems make no sense when user doesn't open debug option. So change it to dev_dbg() and prevent kernel log from being.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=60636

---
 drivers/pci/pci-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci-acpi.c +1 -1
index c78cc43..fb3522957 100644
@@ -210,7 +210,7 @@ static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
 	}
 
 	if (!error)
-		dev_info(&dev->dev, "power state changed by ACPI to %s\n",
+		dev_dbg(&dev->dev, "power state changed by ACPI to %s\n",
 			 acpi_power_state_string(state_conv[state]));
 
 	return error;
Signature · 1 line
1.8.3.2
#1 lore raw
Quoted 10 lines · On Tuesday, July 30, 2013 10:32:30 AM [email protected] wrote:

From: Lan Tianyu <[email protected]>

acpi_pci_set_power_state() produces log of device power state changing. Now the log is produced by dev_info(). This seems make no sense when user doesn't open debug option. So change it to dev_dbg() and prevent kernel log from being.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=60636

Bjorn, what do you think about this?

Rafael

Quoted 18 lines
---
 drivers/pci/pci-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci-acpi.c +1 -1
index c78cc43..fb3522957 100644
@@ -210,7 +210,7 @@ static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
 	}
 
 	if (!error)
-		dev_info(&dev->dev, "power state changed by ACPI to %s\n",
+		dev_dbg(&dev->dev, "power state changed by ACPI to %s\n",
 			 acpi_power_state_string(state_conv[state]));
 
 	return error;
Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
maintainer
#2 lore raw
Quoted 8 lines · Rafael J. Wysocki
Quoted 7 lines · On Tuesday, July 30, 2013 10:32:30 AM [email protected] wrote:

From: Lan Tianyu <[email protected]>

acpi_pci_set_power_state() produces log of device power state changing. Now the log is produced by dev_info(). This seems make no sense when user doesn't open debug option. So change it to dev_dbg() and prevent kernel log from being.

Quoted 5 lines
Quoted 3 lines

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=60636

Bjorn, what do you think about this?

It's fine with me. For information that I want in the dmesg log all the time, with no special action from the user, I personally avoid dev_dbg() because I can never figure out whether it's enabled or not. But I don't use the information from this printk, so it's completely up to you. Just let me know what you want. If you have other pending changes to this file, you can take it, or I can put it in my tree.

Bjorn

Quoted 21 lines
Quoted 10 lines
---
 drivers/pci/pci-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci-acpi.c +0 -0
index c78cc43..fb3522957 100644

drivers/pci/pci-acpi.c static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state) · line 216

Quoted 8 lines
drivers/pci/pci-acpi.c +1 -1
@@ -210,7 +210,7 @@ static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
      }
 
      if (!error)
-             dev_info(&dev->dev, "power state changed by ACPI to %s\n",
+             dev_dbg(&dev->dev, "power state changed by ACPI to %s\n",
                       acpi_power_state_string(state_conv[state]));
 
      return error;

--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

#3 lore raw
Quoted 13 lines · Bjorn Helgaas
Quoted 12 lines · Rafael J. Wysocki
Quoted 10 lines · On Tuesday, July 30, 2013 10:32:30 AM [email protected] wrote:

From: Lan Tianyu <[email protected]>

acpi_pci_set_power_state() produces log of device power state changing. Now the log is produced by dev_info(). This seems make no sense when user doesn't open debug option. So change it to dev_dbg() and prevent kernel log from being.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=60636

Quoted 8 lines
Quoted 1 line

Bjorn, what do you think about this?

It's fine with me. For information that I want in the dmesg log all the time, with no special action from the user, I personally avoid dev_dbg() because I can never figure out whether it's enabled or not. But I don't use the information from this printk, so it's completely up to you. Just let me know what you want. If you have other pending changes to this file, you can take it, or I can put it in my tree.

Yes, I have one change to this file in my queue for 3.12, so I can take this patch.

Thanks,
Rafael

Quoted 21 lines
Quoted 21 lines
Quoted 10 lines
---
 drivers/pci/pci-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci-acpi.c +0 -0
index c78cc43..fb3522957 100644

drivers/pci/pci-acpi.c static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state) · line 216

Quoted 8 lines
drivers/pci/pci-acpi.c +1 -1
@@ -210,7 +210,7 @@ static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
      }
 
      if (!error)
-             dev_info(&dev->dev, "power state changed by ACPI to %s\n",
+             dev_dbg(&dev->dev, "power state changed by ACPI to %s\n",
                       acpi_power_state_string(state_conv[state]));
 
      return error;

--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

Signature · 2 lines
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
maintainer Acked-by
#4 lore raw
Quoted 23 lines · Rafael J. Wysocki
Quoted 13 lines · Bjorn Helgaas
Quoted 12 lines · Rafael J. Wysocki
Quoted 10 lines · On Tuesday, July 30, 2013 10:32:30 AM [email protected] wrote:

From: Lan Tianyu <[email protected]>

acpi_pci_set_power_state() produces log of device power state changing. Now the log is produced by dev_info(). This seems make no sense when user doesn't open debug option. So change it to dev_dbg() and prevent kernel log from being.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=60636

Quoted 8 lines
Quoted 1 line

Bjorn, what do you think about this?

It's fine with me. For information that I want in the dmesg log all the time, with no special action from the user, I personally avoid dev_dbg() because I can never figure out whether it's enabled or not. But I don't use the information from this printk, so it's completely up to you. Just let me know what you want. If you have other pending changes to this file, you can take it, or I can put it in my tree.

Quoted 2 lines

Yes, I have one change to this file in my queue for 3.12, so I can take this patch.

OK.

Quoted 24 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
---
 drivers/pci/pci-acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pci/pci-acpi.c +1 -1
index c78cc43..fb3522957 100644
@@ -210,7 +210,7 @@ static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state)
      }
 
      if (!error)
-             dev_info(&dev->dev, "power state changed by ACPI to %s\n",
+             dev_dbg(&dev->dev, "power state changed by ACPI to %s\n",
                       acpi_power_state_string(state_conv[state]));
 
Quoted 5 lines
Quoted 5 lines

drivers/pci/pci-acpi.c static int acpi_pci_set_power_state(struct pci_dev *dev, pci_power_t state) · line 216

Quoted 2 lines
drivers/pci/pci-acpi.c +0 -0
      return error;

--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.