Skip to content

Commit 2a0dc1d

Browse files
committed
samples: detect_test: remove redundant function names
Remove redundant function names from log messages Signed-off-by: Adrian Bonislawski <adrian.bonislawski@intel.com>
1 parent 112ef16 commit 2a0dc1d

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/samples/audio/detect_test.c

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ static int test_keyword_ctrl_set_bin_data(struct comp_dev *dev,
519519
* configuration will be used when playback/capture
520520
* starts.
521521
*/
522-
comp_err(dev, "keyword_ctrl_set_bin_data(): driver is busy");
522+
comp_err(dev, "driver is busy");
523523
return -EBUSY;
524524
}
525525

@@ -531,7 +531,7 @@ static int test_keyword_ctrl_set_bin_data(struct comp_dev *dev,
531531
ret = comp_data_blob_set_cmd(cd->model_handler, cdata);
532532
break;
533533
default:
534-
comp_err(dev, "keyword_ctrl_set_bin_data(): unknown binary data type");
534+
comp_err(dev, "unknown binary data type");
535535
break;
536536
}
537537

@@ -545,20 +545,20 @@ static int test_keyword_ctrl_set_data(struct comp_dev *dev,
545545

546546
/* Check version from ABI header */
547547
if (SOF_ABI_VERSION_INCOMPATIBLE(SOF_ABI_VERSION, cdata->data->abi)) {
548-
comp_err(dev, "test_keyword_cmd_set_data(): invalid version");
548+
comp_err(dev, "invalid version");
549549
return -EINVAL;
550550
}
551551

552552
switch (cdata->cmd) {
553553
case SOF_CTRL_CMD_ENUM:
554-
comp_info(dev, "test_keyword_cmd_set_data(), SOF_CTRL_CMD_ENUM");
554+
comp_info(dev, "SOF_CTRL_CMD_ENUM");
555555
break;
556556
case SOF_CTRL_CMD_BINARY:
557-
comp_info(dev, "test_keyword_cmd_set_data(), SOF_CTRL_CMD_BINARY");
557+
comp_info(dev, "SOF_CTRL_CMD_BINARY");
558558
ret = test_keyword_ctrl_set_bin_data(dev, cdata);
559559
break;
560560
default:
561-
comp_err(dev, "test_keyword_cmd_set_data(): invalid cdata->cmd");
561+
comp_err(dev, "invalid cdata->cmd");
562562
ret = -EINVAL;
563563
break;
564564
}
@@ -667,7 +667,7 @@ static struct comp_dev *test_keyword_new(const struct comp_driver *drv,
667667
struct comp_data *cd = NULL;
668668
int ret = 0;
669669

670-
comp_cl_info(&comp_keyword, "test_keyword_new()");
670+
comp_cl_info(&comp_keyword, "entry");
671671

672672
dev = comp_alloc(drv, sizeof(*dev));
673673
if (!dev)
@@ -704,12 +704,12 @@ static struct comp_dev *test_keyword_new(const struct comp_driver *drv,
704704

705705
if (bs > 0) {
706706
if (bs < sizeof(struct sof_detect_test_config)) {
707-
comp_err(dev, "test_keyword_new(): invalid data size");
707+
comp_err(dev, "invalid data size");
708708
goto cd_fail;
709709
}
710710

711711
if (test_keyword_apply_config(dev, cfg)) {
712-
comp_err(dev, "test_keyword_new(): failed to apply config");
712+
comp_err(dev, "failed to apply config");
713713
goto cd_fail;
714714
}
715715
}
@@ -718,7 +718,7 @@ static struct comp_dev *test_keyword_new(const struct comp_driver *drv,
718718
ret = comp_init_data_blob(cd->model_handler, INITIAL_MODEL_DATA_SIZE,
719719
NULL);
720720
if (ret < 0) {
721-
comp_err(dev, "test_keyword_new(): model data initial failed");
721+
comp_err(dev, "model data initial failed");
722722
goto cd_fail;
723723
}
724724

@@ -735,7 +735,7 @@ static struct comp_dev *test_keyword_new(const struct comp_driver *drv,
735735
#endif /* CONFIG_IPC_MAJOR_4 */
736736

737737
if (!cd->msg) {
738-
comp_err(dev, "test_keyword_new(): ipc notification init failed");
738+
comp_err(dev, "ipc notification init failed");
739739
goto cd_fail;
740740
}
741741

@@ -744,7 +744,7 @@ static struct comp_dev *test_keyword_new(const struct comp_driver *drv,
744744
cd->input = rballoc_align(SOF_MEM_FLAG_USER,
745745
sizeof(int16_t) * KWD_NN_IN_BUFF_SIZE, 64);
746746
if (!cd->input) {
747-
comp_err(dev, "test_keyword_new(): input alloc failed");
747+
comp_err(dev, "input alloc failed");
748748
goto cd_fail;
749749
}
750750
bzero(cd->input, sizeof(int16_t) * KWD_NN_IN_BUFF_SIZE);

0 commit comments

Comments
 (0)