qcacmn: Replace linux print APIs with qdf print APIs
Replace linux print APIs with equivalent level qdf print APIs. Change-Id: If0a4a5326de87c9f023e8f4de996a4734ed6cda2 CRs-Fixed: 2530137
Этот коммит содержится в:

коммит произвёл
nshrivas

родитель
659379aeff
Коммит
7ee0677954
@@ -1636,13 +1636,13 @@ ssize_t hif_input_desc_trace_buf_index(struct hif_softc *scn,
|
||||
ce_hist = &scn->hif_ce_desc_hist;
|
||||
|
||||
if (!size) {
|
||||
pr_err("%s: Invalid input buffer.\n", __func__);
|
||||
qdf_nofl_err("%s: Invalid input buffer.", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (sscanf(buf, "%u %u", (unsigned int *)&ce_hist->hist_id,
|
||||
(unsigned int *)&ce_hist->hist_index) != 2) {
|
||||
pr_err("%s: Invalid input value.\n", __func__);
|
||||
qdf_nofl_err("%s: Invalid input value.", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
if ((ce_hist->hist_id >= CE_COUNT_MAX) ||
|
||||
@@ -1681,13 +1681,14 @@ ssize_t hif_ce_en_desc_hist(struct hif_softc *scn, const char *buf, size_t size)
|
||||
ce_hist = &scn->hif_ce_desc_hist;
|
||||
|
||||
if (!size) {
|
||||
pr_err("%s: Invalid input buffer.\n", __func__);
|
||||
qdf_nofl_err("%s: Invalid input buffer.", __func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
if (sscanf(buf, "%u %u", (unsigned int *)&ce_id,
|
||||
(unsigned int *)&cfg) != 2) {
|
||||
pr_err("%s: Invalid input: Enter CE Id<sp><1/0>.\n", __func__);
|
||||
qdf_nofl_err("%s: Invalid input: Enter CE Id<sp><1/0>.",
|
||||
__func__);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (ce_id >= CE_COUNT_MAX) {
|
||||
|
@@ -720,7 +720,7 @@ void hif_usb_ramdump_handler(struct hif_opaque_softc *scn)
|
||||
reg = (uint32_t *) (data + 4);
|
||||
start_addr = *reg++;
|
||||
if (sc->fw_ram_dumping == 0) {
|
||||
pr_err("Firmware stack dump:");
|
||||
qdf_nofl_err("Firmware stack dump:");
|
||||
sc->fw_ram_dumping = 1;
|
||||
fw_stack_addr = start_addr;
|
||||
}
|
||||
@@ -729,13 +729,13 @@ void hif_usb_ramdump_handler(struct hif_opaque_softc *scn)
|
||||
for (i = 0; i < (len - 8); i += 16) {
|
||||
if ((*reg == FW_REG_END_PATTERN) && (i == len - 12)) {
|
||||
sc->fw_ram_dumping = 0;
|
||||
pr_err("Stack start address = %#08x\n",
|
||||
fw_stack_addr);
|
||||
qdf_nofl_err("Stack start address = %#08x",
|
||||
fw_stack_addr);
|
||||
break;
|
||||
}
|
||||
hex_dump_to_buffer(reg, remaining, 16, 4, str_buf,
|
||||
sizeof(str_buf), false);
|
||||
pr_err("%#08x: %s\n", start_addr + i, str_buf);
|
||||
qdf_nofl_err("%#08x: %s", start_addr + i, str_buf);
|
||||
remaining -= 16;
|
||||
reg += 4;
|
||||
}
|
||||
|
Ссылка в новой задаче
Block a user