History

ata: libata: drop ata_msg_info()

Convert the sole caller to ata_dev_dbg() and remove the definition.

Hannes Reinecke committed 4 years ago

Commit 96c810f1 parent 17a1e1b2 files · +3 −9Browse files

Unified · Split

2 files
  1. drivers/ata/libata-core.c +3 −7
  2. include/linux/libata.h +0 −2
drivers/ata/libata-core.c+3−7
@@ -2530,8 +2530,8 @@ int ata_dev_configure(struct ata_device *dev) · 2529 unmodified lines
25302530 char modelbuf[ATA_ID_PROD_LEN+1];
25312531 int rc;
25322532
2533− if (!ata_dev_enabled(dev) && ata_msg_info(ap)) {
2534− ata_dev_info(dev, "%s: ENTER/EXIT -- nodev\n", __func__);
2533+ if (!ata_dev_enabled(dev)) {
2534+ ata_dev_dbg(dev, "no device\n");
25352535 return 0;
25362536 }
25372537
@@ -5333,11 +5333,7 @@ struct ata_port *ata_port_alloc(struct ata_host *host) · 2795 unmodified lines
53335333
53345334 #if defined(ATA_VERBOSE_DEBUG)
53355335 /* turn on all debugging levels */
5336− ap->msg_enable = 0x0003;
5337−#elif defined(ATA_DEBUG)
5338− ap->msg_enable = ATA_MSG_DRV | ATA_MSG_INFO;
5339−#else
5340− ap->msg_enable = ATA_MSG_DRV;
5336+ ap->msg_enable = 0x0001;
53415337 #endif
53425338
53435339 mutex_init(&ap->scsi_scan_mutex);
include/linux/libata.h+0−2
@@ -73,11 +73,9 @@ · 72 unmodified lines
7373
7474 enum {
7575 ATA_MSG_DRV = 0x0001,
76− ATA_MSG_INFO = 0x0002,
7776 };
7877
7978 #define ata_msg_drv(p) ((p)->msg_enable & ATA_MSG_DRV)
80−#define ata_msg_info(p) ((p)->msg_enable & ATA_MSG_INFO)
8179
8280 static inline u32 ata_msg_init(int dval, int default_msg_enable_bits)
8381 {

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t