Skip to content

Commit cff3bce

Browse files
committed
fixup! soundwire: stream: uniquify dev_err() logs
Using Amadeusz's suggestion to use __func__ for consistent messages Also fix confusions on dev_err, this should be using pr_err Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
1 parent aa34bc9 commit cff3bce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/soundwire/stream.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1389,7 +1389,7 @@ static int _sdw_prepare_stream(struct sdw_stream_runtime *stream,
13891389

13901390
ret = do_bank_switch(stream);
13911391
if (ret < 0) {
1392-
dev_err(bus->dev, "do_bank_switch failed: %d\n", ret);
1392+
pr_err("%s: do_bank_switch failed: %d\n", __func__, ret);
13931393
goto restore_params;
13941394
}
13951395

@@ -1497,7 +1497,7 @@ static int _sdw_enable_stream(struct sdw_stream_runtime *stream)
14971497

14981498
ret = do_bank_switch(stream);
14991499
if (ret < 0) {
1500-
dev_err(bus->dev, "Bank switch failed: %d\n", ret);
1500+
pr_err("%s: do_bank_switch failed: %d\n", __func__, ret);
15011501
return ret;
15021502
}
15031503

@@ -1574,7 +1574,7 @@ static int _sdw_disable_stream(struct sdw_stream_runtime *stream)
15741574

15751575
ret = do_bank_switch(stream);
15761576
if (ret < 0) {
1577-
pr_err("Bank switch failed: %d\n", ret);
1577+
pr_err("%s: do_bank_switch failed: %d\n", __func__, ret);
15781578
return ret;
15791579
}
15801580

0 commit comments

Comments
 (0)