Skip to content

Commit 39d78fc

Browse files
committed
soundwire: intel: uniquify debug message
The same debug message is replicated multiple time, add __func__ to figure out what link is ignored. Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent e890361 commit 39d78fc

1 file changed

Lines changed: 14 additions & 14 deletions

File tree

drivers/soundwire/intel.c

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1336,8 +1336,8 @@ int intel_link_startup(struct auxiliary_device *auxdev)
13361336

13371337
if (bus->prop.hw_disabled) {
13381338
dev_info(dev,
1339-
"SoundWire master %d is disabled, ignoring\n",
1340-
sdw->instance);
1339+
"%s: SoundWire master %d is disabled, ignoring\n",
1340+
__func__, sdw->instance);
13411341
return 0;
13421342
}
13431343

@@ -1497,8 +1497,8 @@ int intel_link_process_wakeen_event(struct auxiliary_device *auxdev)
14971497
bus = &sdw->cdns.bus;
14981498

14991499
if (bus->prop.hw_disabled || !sdw->startup_done) {
1500-
dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n",
1501-
bus->link_id);
1500+
dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n",
1501+
__func__, bus->link_id);
15021502
return 0;
15031503
}
15041504

@@ -1557,8 +1557,8 @@ static int __maybe_unused intel_pm_prepare(struct device *dev)
15571557
int ret;
15581558

15591559
if (bus->prop.hw_disabled || !sdw->startup_done) {
1560-
dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n",
1561-
bus->link_id);
1560+
dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n",
1561+
__func__, bus->link_id);
15621562
return 0;
15631563
}
15641564

@@ -1617,8 +1617,8 @@ static int __maybe_unused intel_suspend(struct device *dev)
16171617
int ret;
16181618

16191619
if (bus->prop.hw_disabled || !sdw->startup_done) {
1620-
dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n",
1621-
bus->link_id);
1620+
dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n",
1621+
__func__, bus->link_id);
16221622
return 0;
16231623
}
16241624

@@ -1670,8 +1670,8 @@ static int __maybe_unused intel_suspend_runtime(struct device *dev)
16701670
int ret;
16711671

16721672
if (bus->prop.hw_disabled || !sdw->startup_done) {
1673-
dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n",
1674-
bus->link_id);
1673+
dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n",
1674+
__func__, bus->link_id);
16751675
return 0;
16761676
}
16771677

@@ -1735,8 +1735,8 @@ static int __maybe_unused intel_resume(struct device *dev)
17351735
int ret;
17361736

17371737
if (bus->prop.hw_disabled || !sdw->startup_done) {
1738-
dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n",
1739-
bus->link_id);
1738+
dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n",
1739+
__func__, bus->link_id);
17401740
return 0;
17411741
}
17421742

@@ -1833,8 +1833,8 @@ static int __maybe_unused intel_resume_runtime(struct device *dev)
18331833
int ret;
18341834

18351835
if (bus->prop.hw_disabled || !sdw->startup_done) {
1836-
dev_dbg(dev, "SoundWire master %d is disabled or not-started, ignoring\n",
1837-
bus->link_id);
1836+
dev_dbg(dev, "%s: SoundWire master %d is disabled or not-started, ignoring\n",
1837+
__func__, bus->link_id);
18381838
return 0;
18391839
}
18401840

0 commit comments

Comments
 (0)