fix: add adc-iio test log

Signed-off-by: zhangyalei <zhangyalei7@huawei.com>
This commit is contained in:
zhangyalei
2022-05-09 03:00:33 -07:00
parent dce7e20260
commit 62faf3f0de
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -123,6 +123,7 @@ int32_t AdcTestRead(void)
return HDF_ERR_IO;
}
}
HDF_LOGI("%s: ADC device num is %u", __func__, tester->config.devNum);
AdcTesterPut(tester);
HDF_LOGI("%s: done", __func__);
@@ -57,7 +57,8 @@ static int AdcReadRaw(struct iio_dev *indioDev, struct iio_chan_spec const *chan
{
struct VirtualAdcDev *dev = NULL;
int ret;
HDF_LOGI("%s: Enter", __func__);
if (indioDev == NULL || chan == NULL || val == NULL || val2 == NULL) {
HDF_LOGE("%s: Illegal parameter", __func__);
return -EINVAL;
@@ -66,7 +67,7 @@ static int AdcReadRaw(struct iio_dev *indioDev, struct iio_chan_spec const *chan
HDF_LOGE("%s: ADC_SCALE_DATA is Illegal", __func__);
return -EINVAL;
}
dev = iio_priv(indioDev);
switch (mask) {
case IIO_CHAN_INFO_RAW: